|
|
@@ -6,7 +6,6 @@ import ( |
|
|
|
"applet/app/enum" |
|
|
|
"applet/app/lib/validate" |
|
|
|
"applet/app/md" |
|
|
|
"applet/app/svc" |
|
|
|
db "code.fnuoos.com/zhimeng/model.git/src" |
|
|
|
"github.com/gin-gonic/gin" |
|
|
|
) |
|
|
@@ -31,8 +30,8 @@ func BasicSet(c *gin.Context) { |
|
|
|
e.OutErr(c, err1.Code, err1.Error()) |
|
|
|
return |
|
|
|
} |
|
|
|
masterId := svc.GetMasterId(c) |
|
|
|
engine := db.DBs[masterId] |
|
|
|
masterId := "0" |
|
|
|
engine := db.Db |
|
|
|
sysCfgDb := implement2.NewSysCfgDb(engine, masterId) |
|
|
|
sysCfgDb.SysCfgUpdate(enum.AppName, req.AppName) |
|
|
|
sysCfgDb.SysCfgUpdate(enum.AppLogo, req.AppLogo) |
|
|
@@ -51,9 +50,8 @@ func BasicSet(c *gin.Context) { |
|
|
|
// @Failure 400 {object} md.Response "具体错误" |
|
|
|
// @Router /api/setCenter/basicGet [GET] |
|
|
|
func BasicGet(c *gin.Context) { |
|
|
|
masterId := svc.GetMasterId(c) |
|
|
|
engine := db.DBs[masterId] |
|
|
|
sysCfgDb := implement2.NewSysCfgDb(engine, masterId) |
|
|
|
engine := db.Db |
|
|
|
sysCfgDb := implement2.NewSysCfgDb(engine, "0") |
|
|
|
res := sysCfgDb.SysCfgFindWithDb(enum.AppLogo, enum.AppName) |
|
|
|
|
|
|
|
e.OutSuc(c, md.BasicSetResp{ |
|
|
|