repository

package
v0.0.0-...-52c4e88 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: MIT Imports: 10 Imported by: 0

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

type RevenueRepository interface {
	GetRevenue() (domain.Revenue, error)
}

func NewRevenueRepo

func NewRevenueRepo(db *sql.DB) RevenueRepository

type RoomRepository

type RoomRepository interface {
	GetAll() ([]domain.Room, error)
	GetByID(id int) (domain.Room, error)
	Create(room domain.Room) (int, error)
	Update(id int, room domain.Room) error
	Delete(id int) error
}

func NewRoomRepo

func NewRoomRepo(db *sql.DB) RoomRepository

Jump to

Keyboard shortcuts

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