...
|
...
|
@@ -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{}{
|
...
|
...
|
@@ -388,8 +394,14 @@ func (svr AuthService) getUserInfo(operator domain.Operator) (interface{}, error |
|
|
"companyName": resultUser.Company.CompanyName,
|
|
|
"logo": resultUser.Company.Log,
|
|
|
},
|
|
|
"im": resultUser.IM,
|
|
|
"org": resultUser.Org,
|
|
|
"im": resultUser.IM,
|
|
|
"org": map[string]interface{}{
|
|
|
"orgId": resultOrg.OrgID,
|
|
|
"orgName": resultOrg.OrgName,
|
|
|
"orgCode": resultOrg.OrgCode,
|
|
|
"companyId": resultOrg.CompanyID,
|
|
|
},
|
|
|
//"currentLoginOrg":resultUser.Org,
|
|
|
}
|
|
|
return user, nil
|
|
|
}
|
...
|
...
|
|