refactoring
This commit is contained in:
@@ -17,11 +17,8 @@ const (
|
||||
)
|
||||
|
||||
type Passenger struct {
|
||||
Passenger_departure_address *geojson.Feature
|
||||
Passenger_destination_address *geojson.Feature
|
||||
Passenger_pickup_date int64
|
||||
Passenger User
|
||||
Preferences Preferences
|
||||
Passenger User
|
||||
Preferences Preferences
|
||||
}
|
||||
|
||||
type Driver struct {
|
||||
@@ -64,12 +61,17 @@ type Preferences struct {
|
||||
}
|
||||
|
||||
type BookingRequest struct {
|
||||
ID string `json:"id"`
|
||||
Passenger_id string `json:"passenger_id"`
|
||||
Driver_id string `json:"driver_id"`
|
||||
Status BookingStatus `json:"booking_status"`
|
||||
Details map[string]any `json:"booking_details"`
|
||||
Operator string `json:"operator"`
|
||||
ID string `json:"id"`
|
||||
Passenger_id string `json:"passenger_id"`
|
||||
Driver_id string `json:"driver_id"`
|
||||
Status BookingStatus `json:"booking_status"`
|
||||
Details map[string]any `json:"booking_details"`
|
||||
Operator string `json:"operator"`
|
||||
Departure_address *geojson.Feature
|
||||
Destination_address *geojson.Feature
|
||||
Pickup_date int64 `json:"pickup_date"`
|
||||
Duration int64 `json:"duration"`
|
||||
Distance float64 `json:"distance"`
|
||||
}
|
||||
|
||||
type Booking struct {
|
||||
@@ -80,6 +82,9 @@ type Booking struct {
|
||||
PassengerDropAddress *geojson.Feature
|
||||
Status BookingStatus `json:"booking_status"`
|
||||
Details map[string]any `json:"booking_details"`
|
||||
Pickup_date int64 `json:"pickup_date"`
|
||||
Duration int64 `json:"duration"`
|
||||
Distance float64 `json:"distance"`
|
||||
}
|
||||
|
||||
type RegularAvailabilities struct {
|
||||
|
||||
Reference in New Issue
Block a user