sprechstunden-go/models/tutor.go

21 lines
497 B
Go
Raw Normal View History

2022-08-29 20:58:19 +00:00
// tutor
package models
type Tutor struct {
Id int
Name string
Email string
2024-01-03 16:04:38 +00:00
// Does the tutor want to subscribe to the mailinglist for student assistents?
// This information has to be extracted from the database by hand.
SubscribeToMailinglist bool
2022-08-29 20:58:19 +00:00
}
type TutorRepository interface {
FindByEmail(Email string) ([]Tutor, error)
FindByNameAndEmail(name string, email string) (Tutor, error)
2022-08-29 20:58:19 +00:00
FindById(Id int) (Tutor, error)
GetAll() ([]Tutor, error)
Add(tutor Tutor) (int, error)
2022-08-29 20:58:19 +00:00
}