params.go 606 B

1234567891011121314151617181920212223242526
  1. package change
  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 `json:"name"`
  9. Price uint16 `json:"price"`
  10. Degree uint16 `json:"degree"`
  11. Density uint16 `json:"density"`
  12. Image string `json:"image"`
  13. Describe string `json:"describe"`
  14. }
  15. type updateParam struct {
  16. Id uint16 `json:"id"`
  17. Name string `json:"name"`
  18. Price uint16 `json:"price"`
  19. Degree uint16 `json:"degree"`
  20. Density uint16 `json:"density"`
  21. Image string `json:"image"`
  22. Describe string `json:"describe"`
  23. }