feat:完善项目信息

This commit is contained in:
henry
2022-01-10 10:00:04 +08:00
parent 119857bfdb
commit 4b5acca5c3
14 changed files with 126 additions and 103 deletions

View File

@ -57,21 +57,6 @@ func (this *Cache) Init() {
}
}},
)
function(
&caches{iModel: model.NewSysPlatform(), iValues: func() interface{} {
out := make([]*model.SysPlatform, 0)
_ = model.ScanFields(model.NewSysPlatform(), &out, []string{"id", "key", "link"})
return out
}, toCache: func(values interface{}) {
out := values.([]*model.SysPlatform)
for _, v := range out {
if v.Link == "" {
continue
}
config2.MemoryForPlatformInfo[v.Link] = v.Key
}
}},
)
}
func NewCache() CacheHandle {