public RestfulResult List(GetFavoriteListRequest request, int? authuid, UserModel authUser)
        {
            //判断当前被读取的收藏列表的USER,是否是达人or 店长
            if (authUser == null)
            {
                return new RestfulResult { Data = new ExecuteResult { StatusCode = StatusCode.ClientError, Message = "user未找到" } };
            }
            request.UserModel = authUser;

            return new RestfulResult { Data = this._favoriteDataService.GetFavoriteList(request) };
        }
        public RestfulResult List(GetFavoriteListRequest request, int?authuid, UserModel authUser)
        {
            //判断当前被读取的收藏列表的USER,是否是达人or 店长
            if (authUser == null)
            {
                return(new RestfulResult {
                    Data = new ExecuteResult {
                        StatusCode = StatusCode.ClientError, Message = "user未找到"
                    }
                });
            }
            request.UserModel = authUser;

            return(new RestfulResult {
                Data = this._favoriteDataService.GetFavoriteList(request)
            });
        }
Exemple #3
0
 /// <summary>
 /// 获取收藏列表
 /// </summary>
 /// <param name="request"></param>
 /// <returns></returns>
 public ExecuteResult <FavoriteCollectionResponse> GetFavoriteList(GetFavoriteListRequest request)
 {
     return(GetFavoriteList((FavoriteListRequest)request));
 }
 /// <summary>
 /// 获取收藏列表
 /// </summary>
 /// <param name="request"></param>
 /// <returns></returns>
 public ExecuteResult<FavoriteCollectionResponse> GetFavoriteList(GetFavoriteListRequest request)
 {
     return GetFavoriteList((FavoriteListRequest)request);
 }