| 1234567891011121314151617181920212223242526272829303132 |
- package request
- // ChannelCreate 通道创建请求
- type ChannelCreate struct {
- ChannelCode string `json:"channel_code"` // 通道编码
- ChannelName string `json:"channel_name"` // 通道名称
- Direction string `json:"direction"` // 进出方向 in/out/inout
- AllowTemporary bool `json:"allow_temporary"` // 是否允许临时车进出
- Description string `json:"description"` // 备注
- ParkingLotID uint `json:"parking_lot_id"` // 所属区域ID
- }
- // ChannelUpdate 通道更新请求
- type ChannelUpdate struct {
- ID uint `json:"id"` // 通道ID
- ChannelCode string `json:"channel_code"` // 通道编码
- ChannelName string `json:"channel_name"` // 通道名称
- Direction string `json:"direction"` // 进出方向 in/out/inout
- AllowTemporary bool `json:"allow_temporary"` // 是否允许临时车进出
- Description string `json:"description"` // 备注
- ParkingLotID uint `json:"parking_lot_id"` // 所属区域ID
- }
- // ChannelQuery 通道查询请求
- type ChannelQuery struct {
- ChannelCode string `form:"channel_code"` // 通道编码
- ChannelName string `form:"channel_name"` // 通道名称
- Direction string `form:"direction"` // 进出方向
- ParkingLotID uint `form:"parking_lot_id"` // 所属区域ID
- Page int `form:"page,default=1"` // 页码
- PageSize int `form:"page_size,default=10"` // 每页数量
- }
|