| 1234567891011121314151617181920212223242526272829303132333435 |
- package request
- import "time"
- // ResolveActiveSessionRequest accepts the three supported external handles for
- // one parking session. At least one handle must be present.
- type ResolveActiveSessionRequest struct {
- SessionID uint
- PlateNumber string
- RFIDTag string
- }
- // OpenSessionRequest contains the immutable entry data for one parking stay.
- type OpenSessionRequest struct {
- PlateNumber string
- RFIDTag string
- ParkingLotID uint
- ParkingSpaceID uint
- EntryImage string
- EntryTime time.Time
- }
- // CloseSessionRequest contains the final result of a completed parking stay.
- // Payment details are copied here as the current session summary; the payment
- // ledger remains the corresponding payment_record rows.
- type CloseSessionRequest struct {
- SessionID uint
- ExitTime time.Time
- StayTime int64
- Fee float64
- PaymentStatus string
- PaymentEntry string
- PaymentMethod string
- ExitImage string
- }
|