params.go 435 B

123456789101112131415161718192021222324252627
  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 addParam struct {
  9. Name string
  10. Price uint16
  11. Degree uint16
  12. Density uint16
  13. Image string
  14. Describe string
  15. }
  16. type updateParam struct {
  17. Id uint16
  18. Name string
  19. Price uint16
  20. Degree uint16
  21. Density uint16
  22. Image string
  23. Describe string
  24. }