package response import "wails-app/internal/dao" type Vehicle struct { dao.Vehicle } type VehicleList struct { Total int64 `json:"total"` List []dao.Vehicle `json:"list"` } type VehicleRecord struct { dao.VehicleRecord } type VehicleRecordList struct { Total int64 `json:"total"` List []dao.VehicleRecord `json:"list"` } type FeeConfig struct { dao.FeeConfig } type FeeConfigList struct { Total int64 `json:"total"` List []dao.FeeConfig `json:"list"` } type ExitPreviewResponse struct { SessionID uint `json:"session_id"` TicketNo string `json:"ticket_no"` TicketState string `json:"ticket_state"` PlateNumber string `json:"plate_number"` RFIDTag string `json:"rfid_tag"` EntryTime int64 `json:"entry_time"` StayTime int64 `json:"stay_time"` Fee float64 `json:"fee"` PaidAmount float64 `json:"paid_amount"` PaymentStatus string `json:"payment_status"` PaymentEntry string `json:"payment_entry"` PaymentMethod string `json:"payment_method"` ParkingLotID uint `json:"parking_lot_id"` EntryImage string `json:"entry_image"` EntryChannelID uint `json:"entry_channel_id"` EntryChannelCode string `json:"entry_channel_code"` EntryChannelName string `json:"entry_channel_name"` EntryDeviceCode string `json:"entry_device_code"` EntryDeviceName string `json:"entry_device_name"` VehicleType string `json:"vehicle_type"` IsTemp bool `json:"is_temp"` // 缴费后免费离场时限(票已支付且超时时有效) Overtime bool `json:"overtime"` // 是否超过免费离场时限 OvertimeFee float64 `json:"overtime_fee"` // 超时后按当前时长重算的总费用 OvertimeDiff float64 `json:"overtime_diff"` // 需补缴差额(总费用 - 已付) } type OperationContextResponse struct { Action string `json:"action"` VehicleFound bool `json:"vehicle_found"` Vehicle *dao.Vehicle `json:"vehicle,omitempty"` Exit *ExitPreviewResponse `json:"exit,omitempty"` } type ExitConfirmResponse struct { SessionID uint `json:"session_id"` PlateNumber string `json:"plate_number"` EntryTime int64 `json:"entry_time"` ExitTime int64 `json:"exit_time"` StayTime int64 `json:"stay_time"` Fee float64 `json:"fee"` ChangeAmount float64 `json:"change_amount"` PaymentEntry string `json:"payment_entry"` PaymentMethod string `json:"payment_method"` EntryChannelID uint `json:"entry_channel_id"` EntryChannelCode string `json:"entry_channel_code"` EntryChannelName string `json:"entry_channel_name"` EntryDeviceCode string `json:"entry_device_code"` EntryDeviceName string `json:"entry_device_name"` ExitChannelID uint `json:"exit_channel_id"` ExitChannelCode string `json:"exit_channel_code"` ExitChannelName string `json:"exit_channel_name"` ExitDeviceCode string `json:"exit_device_code"` ExitDeviceName string `json:"exit_device_name"` }