Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BookingService ¶
type BookingService struct {
// contains filtered or unexported fields
}
func NewBookingService ¶
func NewBookingService(repo repository.Booking, roomRepo repository.Room) *BookingService
func (*BookingService) Create ¶
func (s *BookingService) Create(booking *model.Booking) (int, error)
func (*BookingService) Delete ¶
func (s *BookingService) Delete(id int) error
func (*BookingService) GetByRoomId ¶
func (s *BookingService) GetByRoomId(roomId int) ([]*model.Booking, error)
type RoomService ¶
type RoomService struct {
// contains filtered or unexported fields
}
func NewRoomService ¶
func NewRoomService(repo repository.Room) *RoomService
func (*RoomService) Delete ¶
func (s *RoomService) Delete(id int) error
type Service ¶
func NewService ¶
func NewService(repos *repository.Repository) *Service
Click to show internal directories.
Click to hide internal directories.