added booking types + working on overtime
This commit is contained in:
15
Backend/models/database.go
Normal file
15
Backend/models/database.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"arbeitszeitmessung/helper"
|
||||
)
|
||||
|
||||
var definedTypes = helper.NewCache(3600, func(key string) (any, error) {
|
||||
switch key {
|
||||
case "s_abwesenheit_typen":
|
||||
return GetAbsenceTypes()
|
||||
case "s_anwesenheit_typen":
|
||||
return GetBookingTypes()
|
||||
}
|
||||
return nil, nil
|
||||
})
|
||||
Reference in New Issue
Block a user