|
@@ -30,7 +30,9 @@ func (s *BusinessExtServer) GetUser(ctx context.Context, req *pb.GetUserReq) (*p |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
return nil, err |
|
|
return nil, err |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if req.UserId != 0 { |
|
|
|
|
|
userId = req.UserId |
|
|
|
|
|
} |
|
|
user, err := app.UserApp.Get(ctx, userId) |
|
|
user, err := app.UserApp.Get(ctx, userId) |
|
|
return &pb.GetUserResp{User: user}, err |
|
|
return &pb.GetUserResp{User: user}, err |
|
|
} |
|
|
} |
|
|