diff --git a/internal/business/api/business_ext.go b/internal/business/api/business_ext.go index 27a949e..e69ff61 100644 --- a/internal/business/api/business_ext.go +++ b/internal/business/api/business_ext.go @@ -30,7 +30,9 @@ func (s *BusinessExtServer) GetUser(ctx context.Context, req *pb.GetUserReq) (*p if err != nil { return nil, err } - + if req.UserId != 0 { + userId = req.UserId + } user, err := app.UserApp.Get(ctx, userId) return &pb.GetUserResp{User: user}, err }