Sprechstunden hinzufügen und durch einen E-Mail-Link bestätigen lassen
This commit is contained in:
parent
369f4ebcec
commit
78af58a51d
18 changed files with 291 additions and 29 deletions
20
models/request.go
Normal file
20
models/request.go
Normal file
|
@ -0,0 +1,20 @@
|
|||
// request
|
||||
package models
|
||||
|
||||
type Request struct {
|
||||
Id int
|
||||
OfficeHour OfficeHour
|
||||
Action int
|
||||
Secret string
|
||||
}
|
||||
|
||||
const RequestActivate int = 1
|
||||
const RequestDelete int = 2
|
||||
|
||||
const SecretLength int = 15
|
||||
|
||||
type RequestRepository interface {
|
||||
Add(officeHour OfficeHour, action int) (int, error)
|
||||
FindBySecret(secret string) (Request, error)
|
||||
Execute(request Request) error
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue