sprechstunden-go/models/request.go

19 lines
353 B
Go
Raw Normal View History

// request
package models
type Request struct {
Id int
OfficeHour OfficeHour
Action int
Secret string
}
const RequestActivate int = 1
const RequestDelete int = 2
type RequestRepository interface {
Add(officeHour OfficeHour, action int) (int, error)
FindBySecret(secret string) (Request, error)
Execute(request Request) error
}