Datenbanken, erster Versuch

This commit is contained in:
Gonne 2022-08-29 22:58:19 +02:00
parent b26544756a
commit 766aedf22d
21 changed files with 678 additions and 320 deletions

14
models/room.go Normal file
View file

@ -0,0 +1,14 @@
// raum
package models
type Room struct {
Id int
Name string
MaxOccupy int
}
type RoomRepository interface {
FindByName(name string) (Room, error)
GetAll() ([]Room, error)
FindById(id int) (Room, error)
}