Datenbanken, erster Versuch
This commit is contained in:
parent
b26544756a
commit
766aedf22d
21 changed files with 678 additions and 320 deletions
14
models/room.go
Normal file
14
models/room.go
Normal 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)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue