booking

package
v0.0.0-...-f309447 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BookingStore

type BookingStore struct {
	// contains filtered or unexported fields
}

func New

func New(db *sql.DB) BookingStore

func (BookingStore) CreateBooking

func (s BookingStore) CreateBooking(ctx context.Context, bookingReq models.BookingRequest, totalAmount float64) (models.Booking, error)

func (BookingStore) DeleteBooking

func (s BookingStore) DeleteBooking(ctx context.Context, id string) (models.Booking, error)

func (BookingStore) GetAllBookings

func (s BookingStore) GetAllBookings(ctx context.Context) ([]models.Booking, error)

func (BookingStore) GetBookingByID

func (s BookingStore) GetBookingByID(ctx context.Context, id string) (models.Booking, error)

func (BookingStore) GetBookingsByCarID

func (s BookingStore) GetBookingsByCarID(ctx context.Context, carID string) ([]models.Booking, error)

func (BookingStore) GetBookingsByCustomerID

func (s BookingStore) GetBookingsByCustomerID(ctx context.Context, customerID string) ([]models.Booking, error)

func (BookingStore) GetBookingsByOwnerID

func (s BookingStore) GetBookingsByOwnerID(ctx context.Context, ownerID string) ([]models.Booking, error)

func (BookingStore) UpdateBookingStatus

func (s BookingStore) UpdateBookingStatus(ctx context.Context, id string, status models.BookingStatus) (models.Booking, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL