main logger
This commit is contained in:
parent
0a441cd3df
commit
cc4cc49617
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user