2022-08-29 20:58:19 +00:00
|
|
|
// tutor
|
|
|
|
package models
|
|
|
|
|
|
|
|
type Tutor struct {
|
2024-01-03 16:04:38 +00:00
|
|
|
Id int
|
|
|
|
Name string
|
|
|
|
Email string
|
|
|
|
SubscribeToMailinglist bool // Wants to subscribe to the mailinglist for student assistents
|
2022-08-29 20:58:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type TutorRepository interface {
|
|
|
|
FindByEmail(Email string) ([]Tutor, error)
|
2022-08-31 20:49:14 +00:00
|
|
|
FindByNameAndEmail(name string, email string) (Tutor, error)
|
2022-08-29 20:58:19 +00:00
|
|
|
FindById(Id int) (Tutor, error)
|
|
|
|
GetAll() ([]Tutor, error)
|
2022-09-05 15:55:08 +00:00
|
|
|
Add(tutor Tutor) (int, error)
|
2022-08-29 20:58:19 +00:00
|
|
|
}
|