vehicle.go 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. PlateNumber string `json:"plate_number"`
  26. EntryTime int64 `json:"entry_time"`
  27. StayTime int64 `json:"stay_time"`
  28. Fee float64 `json:"fee"`
  29. VehicleType string `json:"vehicle_type"`
  30. IsTemp bool `json:"is_temp"`
  31. }
  32. type ExitConfirmResponse struct {
  33. PlateNumber string `json:"plate_number"`
  34. EntryTime int64 `json:"entry_time"`
  35. ExitTime int64 `json:"exit_time"`
  36. StayTime int64 `json:"stay_time"`
  37. Fee float64 `json:"fee"`
  38. ChangeAmount float64 `json:"change_amount"`
  39. PaymentMethod string `json:"payment_method"`
  40. }