Datenbanken, erster Versuch
This commit is contained in:
parent
b26544756a
commit
766aedf22d
21 changed files with 678 additions and 320 deletions
14
models/course.go
Normal file
14
models/course.go
Normal file
|
@ -0,0 +1,14 @@
|
|||
// course
|
||||
package models
|
||||
|
||||
type Course struct {
|
||||
Id int
|
||||
Name string
|
||||
}
|
||||
|
||||
type CourseRepository interface {
|
||||
FindByName(name string) (Course, error)
|
||||
GetAll() ([]Course, error)
|
||||
FindById(id int) (Course, error)
|
||||
GetActive() ([]Course, error)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue