package request import "time" // ResolveActiveSessionRequest 使用会话编号、车牌或 RFID 定位停车会话,至少需要提供一个标识。 type ResolveActiveSessionRequest struct { SessionID uint PlateNumber string RFIDTag string } // EntryAccessProfile 描述车辆在停车场满位时参与准入判断的身份。 // 同一车辆可以同时具有多个身份,只要任一身份被停车场允许即可入场。 type EntryAccessProfile struct { IsTemporary bool HasValidMonthlyCard bool IsVIP bool } // 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 AccessProfile EntryAccessProfile } // 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 }