sprechstunden-go/models/tutor.go

17 lines
463 B
Go

// tutor
package models
type Tutor struct {
Id int
Name string
Email string
SubscribeToMailinglist bool // Wants to subscribe to the mailinglist for student assistents
}
type TutorRepository interface {
FindByEmail(Email string) ([]Tutor, error)
FindByNameAndEmail(name string, email string) (Tutor, error)
FindById(Id int) (Tutor, error)
GetAll() ([]Tutor, error)
Add(tutor Tutor) (int, error)
}