params.go 402 B

1234567891011121314151617181920212223242526
  1. package wine
  2. type queryParam struct {
  3. Cond string `json:"cond"`
  4. Page int `json:"page"`
  5. Limit int `json:"limit"`
  6. }
  7. type addParam struct {
  8. Name string
  9. Price uint16
  10. Degree uint16
  11. Density uint16
  12. Image string
  13. Describe string
  14. }
  15. type updateParam struct {
  16. Id uint16
  17. Name string
  18. Price uint16
  19. Degree uint16
  20. Density uint16
  21. Image string
  22. Describe string
  23. }