|
@@ -43,13 +43,15 @@ func SchemeList(c *gin.Context) { |
|
|
e.OutErr(c, e.ERR_DB_ORM, err2.Error()) |
|
|
e.OutErr(c, e.ERR_DB_ORM, err2.Error()) |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
temp.EnterpriseList = append(temp.EnterpriseList, struct { |
|
|
|
|
|
Id int `json:"id"` |
|
|
|
|
|
Name string `json:"name"` |
|
|
|
|
|
}{ |
|
|
|
|
|
Id: enterprise.Id, |
|
|
|
|
|
Name: enterprise.Name, |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
if enterprise != nil { |
|
|
|
|
|
temp.EnterpriseList = append(temp.EnterpriseList, struct { |
|
|
|
|
|
Id int `json:"id"` |
|
|
|
|
|
Name string `json:"name"` |
|
|
|
|
|
}{ |
|
|
|
|
|
Id: enterprise.Id, |
|
|
|
|
|
Name: enterprise.Name, |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
result = append(result, &temp) |
|
|
result = append(result, &temp) |
|
|
} |
|
|
} |
|
|