carpool-service/internal/booking.go

15 lines
464 B
Go

package internal
import (
"git.coopgo.io/coopgo-platform/carpool-service/interoperability/ocss"
"github.com/paulmach/orb/geojson"
)
// Booking is the internal struct to desribe a booking. It overrides ocss.Booking and adds driver and passenger routes
type Booking struct {
ocss.Booking `bson:",inline"`
DriverRoute *geojson.FeatureCollection `bson:"driver_route,omitempty"`
PassengerRoute *geojson.FeatureCollection `bson:"passenger_route,omitempty"`
}