Пример #1
0
        public Response Execute(User currentUser, string request)
        {
            var req  = JsonConvert.DeserializeObject <Request <GetUserRelatedFilter> >(request);
            var user = UserHelper.GetUserByCode(req.Filter.UserCode);

            if (user == null)
            {
                return(ResultHelper.Fail("没有找到此用户"));
            }
            var result = UserHelper.Instance.GetUserInfo(user.Id, req.Filter.CurrentUserId
                                                         , req.Filter.ClubId, req.Filter.UserCode);

            return(result);
        }
Пример #2
0
        public Response Execute(string request)
        {
            var req  = JsonConvert.DeserializeObject <Request <User> >(request);
            var user = UserHelper.GetUserByCode(req.Filter.Code);

            if (user == null)
            {
                return(ResultHelper.Fail("帐号不存在。"));
            }


            return(ResultHelper.Success(new List <EntityBase> {
                user
            }));
        }