promote.go 366 B

12345678910111213141516
  1. package operation
  2. import "go-common/app/service/main/archive/api"
  3. // Promote strcuct
  4. type Promote struct {
  5. IsAd int8 `json:"is_ad"`
  6. Archive *api.Arc `json:"archive"`
  7. }
  8. // ArgPromote strcuct
  9. type ArgPromote struct {
  10. Tp string `form:"tp" validate:"required"`
  11. Count int `form:"count" validate:"min=0"`
  12. Rank int `form:"rank" validate:"min=0"`
  13. }