Browse Source

update module setting

master
shenjiachi 2 days ago
parent
commit
93d4c0dbe4
3 changed files with 9 additions and 9 deletions
  1. +2
    -2
      app/hdl/ModuleSetting.go
  2. +6
    -6
      app/md/md_module_setting.go
  3. +1
    -1
      go.mod

+ 2
- 2
app/hdl/ModuleSetting.go View File

@@ -45,10 +45,10 @@ func GetModuleSetting(c *gin.Context) {
e.OutErr(c, e.ERR_DB_ORM, err.Error())
return
}
var dataMap map[string]interface{}
var dataMap interface{}
redisConn := cache.GetPool().Get()
scheme, domain := svc.ImageBucket(db.Db, redisConn)
moduleStyle.Data = svc.ImageFormatWithBucketNew(scheme, domain, moduleStyle.Data)
moduleStyle.Data = svc.ImageFormatWithBucketForDataInfo(scheme, domain, moduleStyle.Data)
utils.Unserialize([]byte(moduleStyle.Data), &dataMap)
resp := md.GetModuleSettingResp{
ModName: moduleStyle.ModName,


+ 6
- 6
app/md/md_module_setting.go View File

@@ -1,10 +1,10 @@
package md

type GetModuleSettingResp struct {
ModName string `json:"mod_name"` // 模块名称
Position string `json:"position"` // 位置
SkipIdentifier string `json:"skip_identifier"` // 跳转标识
Title string `json:"title"` // 标题
Subtitle string `json:"subtitle"` // 副标题
Data map[string]interface{} `json:"data"` // 内容
ModName string `json:"mod_name"` // 模块名称
Position string `json:"position"` // 位置
SkipIdentifier string `json:"skip_identifier"` // 跳转标识
Title string `json:"title"` // 标题
Subtitle string `json:"subtitle"` // 副标题
Data interface{} `json:"data"` // 内容
}

+ 1
- 1
go.mod View File

@@ -33,7 +33,7 @@ require (

require (
code.fnuoos.com/EggPlanet/egg_models.git v0.2.1-0.20241129082300-a528fb63b590
code.fnuoos.com/EggPlanet/egg_system_rules.git v0.0.4-0.20241129083357-e0e1afc0ff46
code.fnuoos.com/EggPlanet/egg_system_rules.git v0.0.4-0.20241202080915-050246e21702
code.fnuoos.com/go_rely_warehouse/zyos_go_es.git v1.0.1-0.20241118083738-0f22da9ba0be
code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git v0.0.5
github.com/alibabacloud-go/darabonba-encode-util v0.0.2


Loading…
Cancel
Save