|
|
@@ -14,7 +14,7 @@ func MenuList(c *gin.Context) { |
|
|
|
admin := svc.GetUser(c) |
|
|
|
qrcodeWithBatchRecordsDb := db.PermissionGroupDb{} |
|
|
|
qrcodeWithBatchRecordsDb.Set() |
|
|
|
groupList, err := qrcodeWithBatchRecordsDb.FindPermissionGroup() |
|
|
|
groupList, err := qrcodeWithBatchRecordsDb.FindPermissionGroupV2() |
|
|
|
if err != nil { |
|
|
|
e.OutErr(c, e.ERR_DB_ORM, err.Error()) |
|
|
|
return |
|
|
@@ -46,6 +46,7 @@ func MenuList(c *gin.Context) { |
|
|
|
var tempRespMap = map[string]*md.PermissionGroupListResp{} |
|
|
|
var tempRespMapKeys []string |
|
|
|
for _, v := range *groupList { |
|
|
|
|
|
|
|
var isCheck bool |
|
|
|
if admin.IsSuperAdministrator == enum.IsSuperAdministratorTure { |
|
|
|
isCheck = true |
|
|
@@ -56,6 +57,11 @@ func MenuList(c *gin.Context) { |
|
|
|
if utils.InArr(utils.IntToStr(v.Id), adminHasPermissionGroupIds) { |
|
|
|
isCheck = true |
|
|
|
} |
|
|
|
|
|
|
|
if v.State == enum.PermissionGroupStateForNormal { |
|
|
|
isCheck = false |
|
|
|
} |
|
|
|
|
|
|
|
tempRespMap[utils.IntToStr(v.Id)] = &md.PermissionGroupListResp{ |
|
|
|
Id: v.Id, |
|
|
|
Name: v.Name, |
|
|
|