package request // ParkingLotCreate 停车区域创建请求 type ParkingLotCreate struct { LotCode string `json:"lot_code"` // 区域编码 LotName string `json:"lot_name"` // 区域名称 Capacity int `json:"capacity" binding:"min=0"` // 车位数量 AllowTemporaryWhenFull bool `json:"allow_temporary_when_full"` // 满位时允许临时车入场 AllowMonthlyWhenFull bool `json:"allow_monthly_when_full"` // 满位时允许有效月租车入场 AllowVIPWhenFull bool `json:"allow_vip_when_full"` // 满位时允许有效 VIP 车入场 Description string `json:"description"` // 备注 } // ParkingLotUpdate 停车区域更新请求 type ParkingLotUpdate struct { ID uint `json:"id"` // 区域ID LotCode string `json:"lot_code"` // 区域编码 LotName string `json:"lot_name"` // 区域名称 Capacity int `json:"capacity" binding:"min=0"` // 车位数量 AllowTemporaryWhenFull bool `json:"allow_temporary_when_full"` // 满位时允许临时车入场 AllowMonthlyWhenFull bool `json:"allow_monthly_when_full"` // 满位时允许有效月租车入场 AllowVIPWhenFull bool `json:"allow_vip_when_full"` // 满位时允许有效 VIP 车入场 Description string `json:"description"` // 备注 } // ParkingLotQuery 停车区域查询请求 type ParkingLotQuery struct { LotCode string `form:"lot_code"` // 区域编码 LotName string `form:"lot_name"` // 区域名称 LotId int `form:"lot_id"` // 区域id Page int `form:"page,default=1"` // 页码 PageSize int `form:"page_size,default=10"` // 每页数量 }