Browse Source

1

add_mode
DengBiao 1 year ago
parent
commit
ee5a601c93
1 changed files with 6 additions and 4 deletions
  1. +6
    -4
      app/admin/hdl/hdl_role.go

+ 6
- 4
app/admin/hdl/hdl_role.go View File

@@ -313,10 +313,12 @@ func AdminList(c *gin.Context) {
} }
var enterpriseList []map[string]interface{} var enterpriseList []map[string]interface{}
for _, v1 := range adminEnterpriseList { for _, v1 := range adminEnterpriseList {
enterpriseList = append(enterpriseList, map[string]interface{}{
"name": v1.Enterprise.Name,
"id": v1.Enterprise.Id,
})
if v1.Enterprise.Id != 0 {
enterpriseList = append(enterpriseList, map[string]interface{}{
"name": v1.Enterprise.Name,
"id": v1.Enterprise.Id,
})
}
} }


result = append(result, md.AdminListResp{ result = append(result, md.AdminListResp{


Loading…
Cancel
Save