main logger

This commit is contained in:
mr 2024-07-18 17:59:25 +02:00
parent 0a441cd3df
commit cc4cc49617

View File

@ -34,6 +34,10 @@ func Init(appName string) {
mongo.MONGOService.Init(models.GetModelsNames(), GetConfig())
}
func GetLogger() logs.Logger {
return logs.GetLogger()
}
func LoadOne(collection LibDataEnum, id string) LibData {
d, err := models.Model(collection.EnumIndex()).GetAccessor().LoadOne(id)
return LibData{Data: d, Err: err}