...
|
...
|
@@ -373,6 +373,12 @@ func (svr AuthService) getUserInfo(operator domain.Operator) (interface{}, error |
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error())
|
|
|
}
|
|
|
resultOrg, err := creationUserGateway.OrgGet(allied_creation_user.ReqOrgGet{
|
|
|
OrgId: int(operator.OrgId),
|
|
|
})
|
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error())
|
|
|
}
|
|
|
var user = map[string]interface{}{
|
|
|
"userId": resultUser.UserId,
|
|
|
"userInfo": map[string]interface{}{
|
...
|
...
|
@@ -389,7 +395,13 @@ func (svr AuthService) getUserInfo(operator domain.Operator) (interface{}, error |
|
|
"logo": resultUser.Company.Log,
|
|
|
},
|
|
|
"im": resultUser.IM,
|
|
|
"org": resultUser.Org,
|
|
|
"org": map[string]interface{}{
|
|
|
"orgId": resultOrg.OrgID,
|
|
|
"orgName": resultOrg.OrgName,
|
|
|
"orgCode": resultOrg.OrgCode,
|
|
|
"companyId": resultOrg.CompanyID,
|
|
|
},
|
|
|
//"currentLoginOrg":resultUser.Org,
|
|
|
}
|
|
|
return user, nil
|
|
|
}
|
...
|
...
|
|