feat:完善项目信息
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user