sprechstunden-go/models/course.go

14 lines
212 B
Go
Raw Normal View History

2022-08-29 20:58:19 +00:00
// 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)
}