|
@@ -35,7 +35,7 @@ func Base(c *gin.Context) { |
|
|
NewAdminRoleDb := implement.NewAdminRoleDb(svc.MasterDb(c)) |
|
|
NewAdminRoleDb := implement.NewAdminRoleDb(svc.MasterDb(c)) |
|
|
role, _ := NewAdminRoleDb.GetAdminRoleByAdminId(user.AdmId) |
|
|
role, _ := NewAdminRoleDb.GetAdminRoleByAdminId(user.AdmId) |
|
|
if role != nil { |
|
|
if role != nil { |
|
|
NewRoleDb := implement.NewRoleDb(svc.MasterDb(c), user.AdmId) |
|
|
|
|
|
|
|
|
NewRoleDb := implement.NewRoleDb(svc.MasterDb(c), role.RoleId) |
|
|
getRole, _ := NewRoleDb.GetRole() |
|
|
getRole, _ := NewRoleDb.GetRole() |
|
|
if getRole != nil { |
|
|
if getRole != nil { |
|
|
res["logo"] = getRole.Logo |
|
|
res["logo"] = getRole.Logo |
|
|