params.go 575 B

12345678910111213141516171819202122232425
  1. package advertise
  2. type queryParam struct {
  3. Desc string `json:"desc"`
  4. Type int `json:"type"`
  5. Page int `json:"page"`
  6. Limit int `json:"limit"`
  7. }
  8. type updateParam struct {
  9. Id uint32 `json:"id"`
  10. Order uint8 `json:"order"`
  11. Base64 string `json:"base64"`
  12. Type bool `json:"type"`
  13. Duration uint16 `json:"duration"`
  14. Describe string `json:"describe"`
  15. }
  16. type addParam struct {
  17. Order uint8 `json:"order"`
  18. Base64 string `json:"base64"`
  19. Type bool `json:"type"`
  20. Duration uint16 `json:"duration"`
  21. Describe string `json:"describe"`
  22. }