正在显示
3 个修改的文件
包含
9 行增加
和
3 行删除
@@ -39,7 +39,7 @@ func (srv PersonStatisticsService) IndexStatistics(cmd *command.IndexStatisticsC | @@ -39,7 +39,7 @@ func (srv PersonStatisticsService) IndexStatistics(cmd *command.IndexStatisticsC | ||
39 | users, err := gatewayUser.UserSearch(allied_creation_user.ReqUserSearch{ | 39 | users, err := gatewayUser.UserSearch(allied_creation_user.ReqUserSearch{ |
40 | Limit: 1, | 40 | Limit: 1, |
41 | Offset: 0, | 41 | Offset: 0, |
42 | - UserType: domain.UserTypeCooperation, | 42 | + //UserType: domain.UserTypeCooperation, |
43 | UserBaseId: cmd.Operator.UserBaseId, | 43 | UserBaseId: cmd.Operator.UserBaseId, |
44 | }) | 44 | }) |
45 | if err != nil { | 45 | if err != nil { |
@@ -91,7 +91,7 @@ func (srv PersonStatisticsService) CompanyStatistics(cmd *command.CooperationPer | @@ -91,7 +91,7 @@ func (srv PersonStatisticsService) CompanyStatistics(cmd *command.CooperationPer | ||
91 | Limit: 100, | 91 | Limit: 100, |
92 | Offset: 0, | 92 | Offset: 0, |
93 | UserBaseId: cmd.Operator.UserBaseId, | 93 | UserBaseId: cmd.Operator.UserBaseId, |
94 | - UserType: domain.UserTypeCooperation, | 94 | + //UserType: domain.UserTypeCooperation, |
95 | }) | 95 | }) |
96 | if err != nil { | 96 | if err != nil { |
97 | return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error()) | 97 | return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error()) |
@@ -7,3 +7,9 @@ type UserInfo struct { | @@ -7,3 +7,9 @@ type UserInfo struct { | ||
7 | UsersId int `json:"userId,string"` | 7 | UsersId int `json:"userId,string"` |
8 | UserCode string `json:"userCode"` | 8 | UserCode string `json:"userCode"` |
9 | } | 9 | } |
10 | + | ||
11 | +const c = 10128 | ||
12 | + | ||
13 | +func EncryptUserId(userId int64) int64 { | ||
14 | + return userId + c | ||
15 | +} |
@@ -227,7 +227,7 @@ func (gateway HttplibAlliedCreationUser) AuthRefreshIM(param ReqAuthRefreshIM) ( | @@ -227,7 +227,7 @@ func (gateway HttplibAlliedCreationUser) AuthRefreshIM(param ReqAuthRefreshIM) ( | ||
227 | 227 | ||
228 | //RefreshIM 用户基础数据 | 228 | //RefreshIM 用户基础数据 |
229 | func (gateway HttplibAlliedCreationUser) AuthUserBaseInfo(param ReqAuthUserBase) (*DataAuthUserBase, error) { | 229 | func (gateway HttplibAlliedCreationUser) AuthUserBaseInfo(param ReqAuthUserBase) (*DataAuthUserBase, error) { |
230 | - url := gateway.baseUrL + "/auth/user-base-info" | 230 | + url := gateway.baseUrL + "/auth/user-info" |
231 | method := "POST" | 231 | method := "POST" |
232 | req := gateway.CreateRequest(url, method) | 232 | req := gateway.CreateRequest(url, method) |
233 | log.Logger.Debug("向用户模块请求数据:用户基础数据。", map[string]interface{}{ | 233 | log.Logger.Debug("向用户模块请求数据:用户基础数据。", map[string]interface{}{ |
-
请 注册 或 登录 后发表评论