17 lines
438 B
Go
Raw Normal View History

package repository
2024-07-09 23:08:31 +02:00
import (
"go-udemy-web-1/internal/models"
"time"
)
type DatabaseRepo interface {
AllUsers() bool
2024-07-09 22:57:07 +02:00
InsertReservation(res models.Reservation) (int, error)
InsertRoomRestriction(res models.RoomRestriction) error
SearchAvailabilityByDatesByRoomID(start, end time.Time, roomID int) (bool, error)
SearchAvailabilityForAllRooms(start, end time.Time) ([]models.Room, error)
GetRoomById(id int) (models.Room, error)
}