Speichere Konfiguration in config/config.json

This commit is contained in:
Gonne 2022-09-19 14:46:16 +02:00
parent 43b3631da2
commit c38286bcc5
14 changed files with 249 additions and 78 deletions

View file

@ -8,8 +8,6 @@ type Date struct {
Minute int
}
const MinuteGranularity int = 5
func DayName(day int) string {
switch day {
case 0:

View file

@ -11,8 +11,6 @@ type Request struct {
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)