vehicle.go 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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. EntryChannelID uint `json:"entry_channel_id"`
  40. EntryChannelCode string `json:"entry_channel_code"`
  41. EntryChannelName string `json:"entry_channel_name"`
  42. EntryDeviceCode string `json:"entry_device_code"`
  43. EntryDeviceName string `json:"entry_device_name"`
  44. VehicleType string `json:"vehicle_type"`
  45. IsTemp bool `json:"is_temp"`
  46. }
  47. type OperationContextResponse struct {
  48. Action string `json:"action"`
  49. VehicleFound bool `json:"vehicle_found"`
  50. Vehicle *dao.Vehicle `json:"vehicle,omitempty"`
  51. Exit *ExitPreviewResponse `json:"exit,omitempty"`
  52. }
  53. type ExitConfirmResponse struct {
  54. PlateNumber string `json:"plate_number"`
  55. EntryTime int64 `json:"entry_time"`
  56. ExitTime int64 `json:"exit_time"`
  57. StayTime int64 `json:"stay_time"`
  58. Fee float64 `json:"fee"`
  59. ChangeAmount float64 `json:"change_amount"`
  60. PaymentEntry string `json:"payment_entry"`
  61. PaymentMethod string `json:"payment_method"`
  62. EntryChannelID uint `json:"entry_channel_id"`
  63. EntryChannelCode string `json:"entry_channel_code"`
  64. EntryChannelName string `json:"entry_channel_name"`
  65. EntryDeviceCode string `json:"entry_device_code"`
  66. EntryDeviceName string `json:"entry_device_name"`
  67. ExitChannelID uint `json:"exit_channel_id"`
  68. ExitChannelCode string `json:"exit_channel_code"`
  69. ExitChannelName string `json:"exit_channel_name"`
  70. ExitDeviceCode string `json:"exit_device_code"`
  71. ExitDeviceName string `json:"exit_device_name"`
  72. }