コード例 #1
0
        /// <summary>
        /// 新活动页查询活动信息接口
        /// </summary>
        /// <param name="flashSaleActivityPageRequest"></param>
        /// <returns></returns>
        public async Task <OperationResult <List <FlashSaleActivityPageModel> > > GetFlashSaleDataActivityPageByIdsAsync(List <FlashSaleActivityPageRequest> flashSaleActivityPageRequest)
        {
            if (flashSaleActivityPageRequest.Count > 20)
            {
                return(OperationResult.FromError <List <FlashSaleActivityPageModel> >(ErrorCode.ParameterError, "最多支持20个活动ID集合查询"));
            }

            return(OperationResult.FromResult(await FlashSaleManager.GetFlashSaleDataActivityPageByIdsAsync(flashSaleActivityPageRequest)));
        }