sprechstunden-go/models/course.go
2022-11-04 21:17:00 +01:00

12 lines
202 B
Go

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)
}