booth.go 717 B

1234567891011121314151617181920212223
  1. package request
  2. type BoothCreate struct {
  3. BoothCode string `json:"booth_code" binding:"required"`
  4. BoothName string `json:"booth_name" binding:"required"`
  5. IPAddress string `json:"ip_address"`
  6. Description string `json:"description"`
  7. }
  8. type BoothUpdate struct {
  9. ID uint `json:"id" binding:"required"`
  10. BoothCode string `json:"booth_code" binding:"required"`
  11. BoothName string `json:"booth_name" binding:"required"`
  12. IPAddress string `json:"ip_address"`
  13. Description string `json:"description"`
  14. }
  15. type BoothQuery struct {
  16. BoothCode string `form:"booth_code"`
  17. BoothName string `form:"booth_name"`
  18. Page int `form:"page,default=1"`
  19. PageSize int `form:"page_size,default=10"`
  20. }