channel.go 1.4 KB

1234567891011121314151617181920212223242526272829303132
  1. package request
  2. // ChannelCreate 通道创建请求
  3. type ChannelCreate struct {
  4. ChannelCode string `json:"channel_code"` // 通道编码
  5. ChannelName string `json:"channel_name"` // 通道名称
  6. Direction string `json:"direction"` // 进出方向 in/out/inout
  7. AllowTemporary bool `json:"allow_temporary"` // 是否允许临时车进出
  8. Description string `json:"description"` // 备注
  9. BoothId uint `json:"booth_id"` //岗亭id
  10. }
  11. // ChannelUpdate 通道更新请求
  12. type ChannelUpdate struct {
  13. ID uint `json:"id"` // 通道ID
  14. ChannelCode string `json:"channel_code"` // 通道编码
  15. ChannelName string `json:"channel_name"` // 通道名称
  16. Direction string `json:"direction"` // 进出方向 in/out/inout
  17. AllowTemporary bool `json:"allow_temporary"` // 是否允许临时车进出
  18. Description string `json:"description"` // 备注
  19. BoothId uint `json:"booth_id"` //岗亭id
  20. }
  21. // ChannelQuery 通道查询请求
  22. type ChannelQuery struct {
  23. ChannelCode string `form:"channel_code"` // 通道编码
  24. ChannelName string `form:"channel_name"` // 通道名称
  25. Direction string `form:"direction"` // 进出方向
  26. ParkingLotID uint `form:"parking_lot_id"` // 所属区域ID
  27. Page int `form:"page,default=1"` // 页码
  28. PageSize int `form:"page_size,default=10"` // 每页数量
  29. }