| 1234567891011121314151617181920212223 |
- package request
- type BoothCreate struct {
- BoothCode string `json:"booth_code" binding:"required"`
- BoothName string `json:"booth_name" binding:"required"`
- IPAddress string `json:"ip_address"`
- Description string `json:"description"`
- }
- type BoothUpdate struct {
- ID uint `json:"id" binding:"required"`
- BoothCode string `json:"booth_code" binding:"required"`
- BoothName string `json:"booth_name" binding:"required"`
- IPAddress string `json:"ip_address"`
- Description string `json:"description"`
- }
- type BoothQuery struct {
- BoothCode string `form:"booth_code"`
- BoothName string `form:"booth_name"`
- Page int `form:"page,default=1"`
- PageSize int `form:"page_size,default=10"`
- }
|