Exemple #1
0
        /// <summary>
        /// 按照拼团类型获取产品列表
        /// </summary>
        /// <returns></returns>
        public async Task <OperationResult <PagedModel <string> > > GetActivityProductGroupAsync(ActivityGroupRequest request)
        {
            if (request.PageIndex < 1 || request.PageIndex < 1 || request.Type > 3)
            {
                return(OperationResult.FromError <PagedModel <string> >(ErrorCode.ParameterError, "参数不正确"));
            }
            var result = await GroupBuyingManager.GetGroupBuyingProductList(request.PageIndex, request.PageSize, false, false, request.Type);

            return(OperationResult.FromResult(result));
        }
Exemple #2
0
        /// <summary>
        /// 分页获取首页ProductGroupId
        /// </summary>
        /// <param name="PageIndex"></param>
        /// <param name="PageSize"></param>
        /// <param name="flag">首页-false;热门产品拼团-true</param>
        /// <param name="channel"></param>
        /// <returns></returns>
        public async Task <OperationResult <PagedModel <string> > > GetGroupBuyingProductListAsync(int PageIndex = 1,
                                                                                                   int PageSize  = 10, bool flag = false, string channel = default(string), bool isOldUser = false)
        {
            if (PageSize < 0 || PageIndex < 0)
            {
                return(OperationResult.FromError <PagedModel <string> >(ErrorCode.ParameterError, "参数不正确"));
            }

            var result = await GroupBuyingManager.GetGroupBuyingProductList(PageIndex, PageSize, flag, isOldUser, -99, channel);

            return(OperationResult.FromResult(result));
        }