|
@@ -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{ |
|
|