session.go 954 B

1234567891011121314151617181920212223242526272829303132333435
  1. package request
  2. import "time"
  3. // ResolveActiveSessionRequest accepts the three supported external handles for
  4. // one parking session. At least one handle must be present.
  5. type ResolveActiveSessionRequest struct {
  6. SessionID uint
  7. PlateNumber string
  8. RFIDTag string
  9. }
  10. // OpenSessionRequest contains the immutable entry data for one parking stay.
  11. type OpenSessionRequest struct {
  12. PlateNumber string
  13. RFIDTag string
  14. ParkingLotID uint
  15. ParkingSpaceID uint
  16. EntryImage string
  17. EntryTime time.Time
  18. }
  19. // CloseSessionRequest contains the final result of a completed parking stay.
  20. // Payment details are copied here as the current session summary; the payment
  21. // ledger remains the corresponding payment_record rows.
  22. type CloseSessionRequest struct {
  23. SessionID uint
  24. ExitTime time.Time
  25. StayTime int64
  26. Fee float64
  27. PaymentStatus string
  28. PaymentEntry string
  29. PaymentMethod string
  30. ExitImage string
  31. }