carpool-service/internal/booking.go

15 lines
464 B
Go
Raw Normal View History

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