|
@@ -31,9 +31,15 @@ func NewGetEntUserInfoLogic(ctx context.Context, svcCtx *svc.ServiceContext) *Ge
|
|
|
func (l *GetEntUserInfoLogic) GetEntUserInfo(req *types.EntUserReq) (resp *types.Resp, err error) {
|
|
|
// todo: add your logic here and delete this line
|
|
|
resp = &types.Resp{Data: nil}
|
|
|
+ entUserid := req.HeaderEntUserId
|
|
|
+ //优先取传的参数,没有的话取header里的取自己的
|
|
|
+ if req.EntUserId > 0 {
|
|
|
+ entUserid = req.EntUserId
|
|
|
+ }
|
|
|
res, err := entity.UserCenterRpc.GetEntUserInfo(l.ctx, &pb.EntUserReq{
|
|
|
AppId: req.AppId,
|
|
|
- EntUserId: req.EntUserId,
|
|
|
+ EntUserId: entUserid,
|
|
|
+ EntId: req.EntId,
|
|
|
})
|
|
|
if res == nil {
|
|
|
resp = &types.Resp{Data: nil, Error_msg: "暂无数据", Error_code: -1}
|