15 lines
250 B
Go
15 lines
250 B
Go
// tutor
|
|
package models
|
|
|
|
type Tutor struct {
|
|
Id int
|
|
Name string
|
|
Email string
|
|
}
|
|
|
|
type TutorRepository interface {
|
|
FindByEmail(Email string) ([]Tutor, error)
|
|
FindById(Id int) (Tutor, error)
|
|
GetAll() ([]Tutor, error)
|
|
Add(tutor Tutor) error
|
|
}
|