sprechstunden-go/models/request.go
2022-11-04 21:17:00 +01:00

18 lines
493 B
Go

// request
package models
type Request struct {
Id int
OfficeHour OfficeHour
Action int
Secret string
}
const RequestActivate int = 1 // Fix integer to represent request for activation of an office hour.
const RequestDelete int = 2 // Fix integer to represent request for deletion of an office hour.
type RequestRepository interface {
Add(officeHour OfficeHour, action int) (int, error)
FindBySecret(secret string) (Request, error)
Execute(request Request) error
}