vehicle.go 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. package response
  2. import "wails-app/internal/dao"
  3. type Vehicle struct {
  4. dao.Vehicle
  5. }
  6. type VehicleList struct {
  7. Total int64 `json:"total"`
  8. List []dao.Vehicle `json:"list"`
  9. }
  10. type VehicleRecord struct {
  11. dao.VehicleRecord
  12. }
  13. type VehicleRecordList struct {
  14. Total int64 `json:"total"`
  15. List []dao.VehicleRecord `json:"list"`
  16. }
  17. type FeeConfig struct {
  18. dao.FeeConfig
  19. }
  20. type FeeConfigList struct {
  21. Total int64 `json:"total"`
  22. List []dao.FeeConfig `json:"list"`
  23. }
  24. type ExitPreviewResponse struct {
  25. SessionID uint `json:"session_id"`
  26. TicketNo string `json:"ticket_no"`
  27. TicketState string `json:"ticket_state"`
  28. PlateNumber string `json:"plate_number"`
  29. RFIDTag string `json:"rfid_tag"`
  30. EntryTime int64 `json:"entry_time"`
  31. StayTime int64 `json:"stay_time"`
  32. Fee float64 `json:"fee"`
  33. PaidAmount float64 `json:"paid_amount"`
  34. PaymentStatus string `json:"payment_status"`
  35. PaymentEntry string `json:"payment_entry"`
  36. PaymentMethod string `json:"payment_method"`
  37. ParkingLotID uint `json:"parking_lot_id"`
  38. EntryImage string `json:"entry_image"`
  39. VehicleType string `json:"vehicle_type"`
  40. IsTemp bool `json:"is_temp"`
  41. }
  42. type OperationContextResponse struct {
  43. Action string `json:"action"`
  44. VehicleFound bool `json:"vehicle_found"`
  45. Vehicle *dao.Vehicle `json:"vehicle,omitempty"`
  46. Exit *ExitPreviewResponse `json:"exit,omitempty"`
  47. }
  48. type ExitConfirmResponse struct {
  49. PlateNumber string `json:"plate_number"`
  50. EntryTime int64 `json:"entry_time"`
  51. ExitTime int64 `json:"exit_time"`
  52. StayTime int64 `json:"stay_time"`
  53. Fee float64 `json:"fee"`
  54. ChangeAmount float64 `json:"change_amount"`
  55. PaymentEntry string `json:"payment_entry"`
  56. PaymentMethod string `json:"payment_method"`
  57. }