booth.go 1.2 KB

1234567891011121314151617181920212223242526272829
  1. package request
  2. // BoothCreate 岗亭创建请求
  3. type BoothCreate struct {
  4. BoothCode string `json:"booth_code"` // 岗亭编码
  5. BoothName string `json:"booth_name"` // 岗亭名称
  6. IPAddress string `json:"ip_address"` // IP地址
  7. Description string `json:"description"` // 备注
  8. ParkingLotID uint `json:"parking_lot_id"` // 所属区域ID
  9. }
  10. // BoothUpdate 岗亭更新请求
  11. type BoothUpdate struct {
  12. ID uint `json:"id"` // 岗亭ID
  13. BoothCode string `json:"booth_code"` // 岗亭编码
  14. BoothName string `json:"booth_name"` // 岗亭名称
  15. IPAddress string `json:"ip_address"` // IP地址
  16. Description string `json:"description"` // 备注
  17. ParkingLotID uint `json:"parking_lot_id"` // 所属区域ID
  18. }
  19. // BoothQuery 岗亭查询请求
  20. type BoothQuery struct {
  21. BoothCode string `form:"booth_code"` // 岗亭编码
  22. BoothName string `form:"booth_name"` // 岗亭名称
  23. ParkingLotID uint `form:"parking_lot_id"` // 所属区域ID
  24. Page int `form:"page,default=1"` // 页码
  25. PageSize int `form:"page_size,default=10"` // 每页数量
  26. }