feat:优化项目信息
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
package common
|
||||
|
||||
import (
|
||||
config2 "SciencesServer/app/basic/config"
|
||||
"SciencesServer/app/common/model"
|
||||
"SciencesServer/config"
|
||||
"SciencesServer/serve/orm"
|
||||
@ -52,6 +53,24 @@ func initModel() {
|
||||
&synchronized{iModel: model.NewSysPatent(), iValues: func() interface{} {
|
||||
return nil
|
||||
}},
|
||||
&synchronized{iModel: model.NewSysIdentity(), iValues: func() interface{} {
|
||||
out := make([]*model.SysIdentity, 0)
|
||||
|
||||
for k, v := range config2.TenantUserIdentityData {
|
||||
registerCount := 1
|
||||
|
||||
if k == config2.TenantUserIdentityForCompany {
|
||||
registerCount = -1
|
||||
}
|
||||
out = append(out, &model.SysIdentity{
|
||||
Identity: k,
|
||||
Name: v,
|
||||
RegisterCount: registerCount,
|
||||
IsExamine: 1,
|
||||
})
|
||||
}
|
||||
return out
|
||||
}},
|
||||
// 日志管理
|
||||
&synchronized{iModel: model.NewSysUserRole()},
|
||||
&synchronized{iModel: model.NewSysLog()}, &synchronized{iModel: model.NewSysUserLoginLog()},
|
||||
|
Reference in New Issue
Block a user