added control tables (s_*) + working on implementing absence and booking types
Some checks failed
arbeitszeitmessung/pipeline/head There was a failure building this commit
Some checks failed
arbeitszeitmessung/pipeline/head There was a failure building this commit
This commit is contained in:
15
Backend/models/controlTables.go
Normal file
15
Backend/models/controlTables.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 GetBokkingTypes()
|
||||
}
|
||||
return nil, nil
|
||||
})
|
||||
Reference in New Issue
Block a user