Add PostgreSQL database option and more booking flow functionalities
This commit is contained in:
@@ -4,34 +4,34 @@ import "time"
|
||||
|
||||
type Trip struct {
|
||||
Operator string `json:"operator"`
|
||||
PassengerPickupLat float64 `json:"passengerPickupLat"`
|
||||
PassengerPickupLng float64 `json:"passengerPickupLng"`
|
||||
PassengerDropLat float64 `json:"passengerDropLat"`
|
||||
PassengerDropLng float64 `json:"passengerDropLng"`
|
||||
PassengerPickupLat float64 `json:"passengerPickupLat" bson:"passengerPickupLat"`
|
||||
PassengerPickupLng float64 `json:"passengerPickupLng" bson:"passengerPickupLng"`
|
||||
PassengerDropLat float64 `json:"passengerDropLat" bson:"passengerDropLat"`
|
||||
PassengerDropLng float64 `json:"passengerDropLng" bson:"passengerDropLng"`
|
||||
Duration time.Duration `json:"duration"`
|
||||
PassengerPickupAddress *string `json:"passengerPickupAddress,omitempty"`
|
||||
PassengerDropAddress *string `json:"passengerDropAddress,omitempty"`
|
||||
Distance *int64 `json:"distance,omitempty"`
|
||||
DriverDepartureLat *float64 `json:"driverDepartureLat,omitempty"`
|
||||
DriverDepartureLng *float64 `json:"driverDepartureLng,omitempty"`
|
||||
DriverArrivalLat *float64 `json:"driverArrivalLat,omitempty"`
|
||||
DriverArrivalLng *float64 `json:"driverArrivalLng,omitempty"`
|
||||
DriverDepartureAddress *string `json:"driverDepartureAddress,omitempty"`
|
||||
DriverArrivalAddress *string `json:"driverArrivalAddress,omitempty"`
|
||||
JourneyPolyline *string `json:"journeyPolyline,omitempty"`
|
||||
PassengerPickupAddress *string `json:"passengerPickupAddress,omitempty" bson:"passengerPickupAddress,omitempty"`
|
||||
PassengerDropAddress *string `json:"passengerDropAddress,omitempty" bson:"passengerDropAddress,omitempty"`
|
||||
Distance *int64 `json:"distance,omitempty" bson:"distance,omitempty"`
|
||||
DriverDepartureLat *float64 `json:"driverDepartureLat,omitempty" bson:"driverDepartureLat,omitempty"`
|
||||
DriverDepartureLng *float64 `json:"driverDepartureLng,omitempty" bson:"driverDepartureLng,omitempty"`
|
||||
DriverArrivalLat *float64 `json:"driverArrivalLat,omitempty" bson:"driverArrivalLat,omitempty"`
|
||||
DriverArrivalLng *float64 `json:"driverArrivalLng,omitempty" bson:"driverArrivalLng,omitempty"`
|
||||
DriverDepartureAddress *string `json:"driverDepartureAddress,omitempty" bson:"driverDepartureAddress,omitempty"`
|
||||
DriverArrivalAddress *string `json:"driverArrivalAddress,omitempty" bson:"driverArrivalAddress,omitempty"`
|
||||
JourneyPolyline *string `json:"journeyPolyline,omitempty" bson:"journeyPolyline,omitempty"`
|
||||
//WebUrl *string `json:"webUrl,omitempty"`
|
||||
Preferences *Preferences `json:"preferences,omitempty"`
|
||||
Preferences *Preferences `json:"preferences,omitempty" bson:"preferences,omitempty"`
|
||||
}
|
||||
|
||||
type DriverTrip struct {
|
||||
Driver User `json:"driver"`
|
||||
DepartureToPickupWalkingDistance *int64 `json:"departureToPickupWalkingDistance,omitempty"`
|
||||
DepartureToPickupWalkingDuration *time.Duration `json:"departureToPickupWalkingDuration,omitempty"`
|
||||
DepartureToPickupWalkingPolyline *string `json:"departureToPickupWalkingPolyline,omitempty"`
|
||||
DropoffToArrivalWalkingDistance *int64 `json:"dropoffToArrivalWalkingDistance,omitempty"`
|
||||
DropoffToArrivalWalkingDuration *time.Duration `json:"dropoffToArrivalWalkingDuration,omitempty"`
|
||||
DropoffToArrivalWalkingPolyline *string `json:"dropoffToArrivalWalkingPolyline,omitempty"`
|
||||
Car *Car `json:"car,omitempty"`
|
||||
DepartureToPickupWalkingDistance *int64 `json:"departureToPickupWalkingDistance,omitempty" bson:"departureToPickupWalkingDistance,omitempty"`
|
||||
DepartureToPickupWalkingDuration *time.Duration `json:"departureToPickupWalkingDuration,omitempty" bson:"departureToPickupWalkingDuration,omitempty"`
|
||||
DepartureToPickupWalkingPolyline *string `json:"departureToPickupWalkingPolyline,omitempty" bson:"departureToPickupWalkingPolyline,omitempty"`
|
||||
DropoffToArrivalWalkingDistance *int64 `json:"dropoffToArrivalWalkingDistance,omitempty" bson:"dropoffToArrivalWalkingDistance,omitempty"`
|
||||
DropoffToArrivalWalkingDuration *time.Duration `json:"dropoffToArrivalWalkingDuration,omitempty" bson:"dropoffToArrivalWalkingDuration,omitempty"`
|
||||
DropoffToArrivalWalkingPolyline *string `json:"dropoffToArrivalWalkingPolyline,omitempty" bson:"dropoffToArrivalWalkingPolyline,omitempty"`
|
||||
Car *Car `json:"car,omitempty" bson:"car,omitempty"`
|
||||
|
||||
Trip
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user