...
|
...
|
@@ -247,3 +247,26 @@ func (srv UserService) UpdateMenuFavorite(menuFavoriteCommand *command.MenuFavor |
|
|
}
|
|
|
return result, nil
|
|
|
}
|
|
|
|
|
|
// 共创组织列表
|
|
|
func (srv UserService) CooperationOrg(operator domain.Operator) (interface{}, error) {
|
|
|
creationUserGateway := allied_creation_user.NewHttplibAlliedCreationUser(operator)
|
|
|
orgs, err := creationUserGateway.OrgSearch(allied_creation_user.ReqOrgSearch{
|
|
|
IsOrg: domain.IsOrgFlag,
|
|
|
Limit: 50,
|
|
|
})
|
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error())
|
|
|
}
|
|
|
var ret = make([]interface{}, 0)
|
|
|
for i := range orgs.Orgs {
|
|
|
item := orgs.Orgs[i]
|
|
|
ret = append(ret, map[string]interface{}{
|
|
|
"orgId": item.OrgID,
|
|
|
"orgName": item.OrgName,
|
|
|
})
|
|
|
}
|
|
|
return map[string]interface{}{
|
|
|
"orgs": ret,
|
|
|
}, nil
|
|
|
} |
...
|
...
|
|