feat:完善项目
This commit is contained in:
@ -47,6 +47,8 @@ func initModel() {
|
||||
// 日志管理
|
||||
&synchronized{iModel: model.NewSysLog()}, &synchronized{iModel: model.NewSysUserLoginLog()},
|
||||
&synchronized{iModel: model.NewSysBreakdown()},
|
||||
// 公告管理
|
||||
&synchronized{iModel: model.NewManageNotice()},
|
||||
// 功能信息
|
||||
&synchronized{iModel: model.NewManageSupplier()},
|
||||
&synchronized{iModel: model.NewManageEquipment()}, &synchronized{iModel: model.NewManageEquipmentMaterial()},
|
||||
@ -72,7 +74,7 @@ func initCacheMode() {
|
||||
}
|
||||
}
|
||||
function(
|
||||
&caches{iModel: model.NewSysTenant(), iValues: func() interface{} {
|
||||
&caches{iModel: model.NewSysConfig(), iValues: func() interface{} {
|
||||
out := make([]*model.SysConfig, 0)
|
||||
_ = model.Find(model.NewSysConfig(), &out)
|
||||
return out
|
||||
@ -86,6 +88,8 @@ func initCacheMode() {
|
||||
}
|
||||
|
||||
func Init() {
|
||||
initModel()
|
||||
if *config.Init {
|
||||
initModel()
|
||||
}
|
||||
initCacheMode()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user