| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- package request
- import "time"
- // ResolveActiveSessionRequest 使用会话编号、车牌或 RFID 定位停车会话,至少需要提供一个标识。
- type ResolveActiveSessionRequest struct {
- SessionID uint
- PlateNumber string
- RFIDTag string
- }
- // OpenSessionRequest 保存一次停车会话不可变的入场信息。
- type OpenSessionRequest struct {
- PlateNumber string
- RFIDTag string
- ParkingLotID uint
- ParkingSpaceID uint
- EntryChannelID uint
- EntryChannelCode string
- EntryChannelName string
- EntryDeviceCode string
- EntryDeviceName string
- EntryImage string
- EntryTime time.Time
- }
- // CloseSessionRequest 保存一次停车会话的最终结算与出场信息。
- // 支付信息仅作为会话摘要,支付流水仍以 payment_record 为准。
- type CloseSessionRequest struct {
- SessionID uint
- ExitTime time.Time
- StayTime int64
- Fee float64
- PaymentStatus string
- PaymentEntry string
- PaymentMethod string
- ExitImage string
- ExitChannelID uint
- ExitChannelCode string
- ExitChannelName string
- ExitDeviceCode string
- ExitDeviceName string
- }
|