DengBiao pirms 1 gada
vecāks
revīzija
ee5a601c93
1 mainītis faili ar 6 papildinājumiem un 4 dzēšanām
  1. +6
    -4
      app/admin/hdl/hdl_role.go

+ 6
- 4
app/admin/hdl/hdl_role.go Parādīt failu

@@ -313,10 +313,12 @@ func AdminList(c *gin.Context) {
}
var enterpriseList []map[string]interface{}
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{


Notiek ielāde…
Atcelt
Saglabāt