session.go 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. package request
  2. import "time"
  3. // ResolveActiveSessionRequest 使用会话编号、车牌或 RFID 定位停车会话,至少需要提供一个标识。
  4. type ResolveActiveSessionRequest struct {
  5. SessionID uint
  6. PlateNumber string
  7. RFIDTag string
  8. }
  9. // OpenSessionRequest 保存一次停车会话不可变的入场信息。
  10. type OpenSessionRequest struct {
  11. PlateNumber string
  12. RFIDTag string
  13. ParkingLotID uint
  14. ParkingSpaceID uint
  15. EntryChannelID uint
  16. EntryChannelCode string
  17. EntryChannelName string
  18. EntryDeviceCode string
  19. EntryDeviceName string
  20. EntryImage string
  21. EntryTime time.Time
  22. }
  23. // CloseSessionRequest 保存一次停车会话的最终结算与出场信息。
  24. // 支付信息仅作为会话摘要,支付流水仍以 payment_record 为准。
  25. type CloseSessionRequest struct {
  26. SessionID uint
  27. ExitTime time.Time
  28. StayTime int64
  29. Fee float64
  30. PaymentStatus string
  31. PaymentEntry string
  32. PaymentMethod string
  33. ExitImage string
  34. ExitChannelID uint
  35. ExitChannelCode string
  36. ExitChannelName string
  37. ExitDeviceCode string
  38. ExitDeviceName string
  39. }