Return handling
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 40s

This commit is contained in:
2025-05-28 07:32:24 +02:00
parent 3d32c9a24a
commit d237401c81
17 changed files with 587 additions and 249 deletions

View File

@@ -1,11 +1,14 @@
package types
import "time"
type Booking struct {
Id string `json:"id" bson:"_id"`
GroupId string `json:"group_id" bson:"group_id"`
DriverId string `json:"driver_id" bson:"driver_id"`
PassengerId string `json:"passenger_id" bson:"passenger_id"`
Status string `json:"status" bson:"status"`
Id string `json:"id" bson:"_id"`
GroupId string `json:"group_id" bson:"group_id"`
DriverId string `json:"driver_id" bson:"driver_id"`
PassengerId string `json:"passenger_id" bson:"passenger_id"`
Status string `json:"status" bson:"status"`
ReturnWaitingDuration time.Duration `json:"return_waiting_duration" bson:"return_waiting_duration"`
Journey *DriverJourney `json:"journey,omitempty" bson:"journey,omitempty"`
}

View File

@@ -25,6 +25,7 @@ type DriverJourney struct {
PassengerPickupDate time.Time `json:"passenger_pickup_date" bson:"passenger_pickup_date"`
DriverDepartureDate time.Time `json:"driver_departure_date" bson:"driver_departure_date"`
Price SolidarityTransportPrice
Noreturn bool
}
type PassengerTrip struct {