get all bookings

This commit is contained in:
2024-12-16 10:35:35 +01:00
parent b8e017b081
commit 7a3bbdae7a
14 changed files with 577 additions and 260 deletions

View File

@@ -95,6 +95,14 @@ func (s *SolidarityServiceHandler) GetBookingsByStatus(ctx context.Context, stat
return bookings, nil
}
func (s *SolidarityServiceHandler) GetAllBookingsSolidarity(ctx context.Context ) (bookings []internal.Booking, err error) {
bookings, err = s.Storage.GetAllBookingsSolidarity()
if err != nil {
return nil, err
}
return bookings, nil
}
func (s *SolidarityServiceHandler) GetDriverJourneys(ctx context.Context, departure_route *geojson.Feature, departure_date int64) (drivers []internal.Driver, err error) {
drivers, err = s.Storage.DriverJourneys(departure_route, departure_date)
if err != nil {