|
|
@@ -6,6 +6,7 @@ import ( |
|
|
|
"applet/app/md" |
|
|
|
"applet/app/svc" |
|
|
|
"applet/app/utils" |
|
|
|
"code.fnuoos.com/zhimeng/model.git/src/implement" |
|
|
|
"github.com/gin-gonic/gin" |
|
|
|
) |
|
|
|
|
|
|
@@ -26,6 +27,22 @@ func Base(c *gin.Context) { |
|
|
|
"account_id": utils.IntToStr(user.AdmId), |
|
|
|
"name": name, |
|
|
|
"account": user.Username, |
|
|
|
"logo": "", |
|
|
|
"label": "", |
|
|
|
"seo_logo": "", |
|
|
|
"seo_title": "", |
|
|
|
} |
|
|
|
NewAdminRoleDb := implement.NewAdminRoleDb(svc.MasterDb(c)) |
|
|
|
role, _ := NewAdminRoleDb.GetAdminRoleByAdminId(user.AdmId) |
|
|
|
if role != nil { |
|
|
|
NewRoleDb := implement.NewRoleDb(svc.MasterDb(c), user.AdmId) |
|
|
|
getRole, _ := NewRoleDb.GetRole() |
|
|
|
if getRole != nil { |
|
|
|
res["logo"] = getRole.Logo |
|
|
|
res["label"] = getRole.Label |
|
|
|
res["seo_logo"] = getRole.SeoLogo |
|
|
|
res["seo_title"] = getRole.SeoTitle |
|
|
|
} |
|
|
|
} |
|
|
|
e.OutSuc(c, res, nil) |
|
|
|
return |
|
|
|