Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BookingRepository ¶
type BookingRepository interface { Create(booking domain.Booking) (int, error) GetAll(filter domain.BookingFilter) ([]domain.Booking, error) GetByID(id int) (domain.Booking, error) Update(id int, booking domain.Booking) error Delete(id int) error }
func NewBookingRepo ¶
func NewBookingRepo(db *sql.DB) BookingRepository
type CalendarRepository ¶
type CalendarRepository interface { Create(calendar domain.Calendar) (int, error) GetAll() ([]domain.Calendar, error) GetByID(id int) (domain.Calendar, error) Update(id int, calendar domain.Calendar) error Delete(id int) error }
func NewCalendarRepo ¶
func NewCalendarRepo(db *sql.DB) CalendarRepository
type RatePlanRepository ¶
type RatePlanRepository interface { Create(ratePlan domain.RatePlan) (int, error) GetAll() ([]domain.RatePlan, error) GetByID(id int) (domain.RatePlan, error) Update(id int, ratePlan domain.RatePlan) error Delete(id int) error }
func NewRatePlanRepo ¶
func NewRatePlanRepo(db *sql.DB) RatePlanRepository
type RevenueRepository ¶
func NewRevenueRepo ¶
func NewRevenueRepo(db *sql.DB) RevenueRepository
Click to show internal directories.
Click to hide internal directories.