feat:完善项目信息

This commit is contained in:
henry
2022-01-12 17:29:05 +08:00
parent 4ec0953a29
commit 5ca8b3f7ff
18 changed files with 281 additions and 255 deletions

View File

@ -36,7 +36,7 @@ func (this *Cache) Init() {
function(
&caches{iModel: model.NewSysConfig(), iValues: func() interface{} {
out := make([]*model.SysConfig, 0)
_ = model.Find(model.NewSysConfig(), &out)
_ = db.Table(model.NewSysConfig().TableName()).Find(&out)
return out
}, toCache: func(values interface{}) {
out := values.([]*model.SysConfig)
@ -48,7 +48,7 @@ func (this *Cache) Init() {
function(
&caches{iModel: model.NewSysIndustry(), iValues: func() interface{} {
out := make([]*model.SysIndustry, 0)
_ = model.ScanFields(model.NewSysIndustry(), &out, []string{"id", "name"})
_ = db.Table(model.NewSysIndustry().TableName()).Select("id", "name").Scan(&out)
return out
}, toCache: func(values interface{}) {
out := values.([]*model.SysIndustry)