コード例 #1
0
        /// <summary>
        /// 设置打折商品详情页牛皮癣
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        public async Task <OperationResult <SetDiscountProductDetailImgResponse> > SetDiscountProductDetailImgAsync(SetDiscountProductDetailImgRequest request)
        {
            if (request == null || string.IsNullOrWhiteSpace(request.ActivityId))
            {
                return(OperationResult.FromError <SetDiscountProductDetailImgResponse>("-1", "参数错误"));
            }

            var updateResult = await SalePromotionActivityManager.SetDiscountProductDetailImgAsync(request);

            return(updateResult);
        }
コード例 #2
0
 public async Task <OperationResult <int> > GetActivityAuditStatusAsync(string activityId)
 {
     return(await SalePromotionActivityManager.GetActivityAuditStatusAsync(activityId));
 }
コード例 #3
0
 public async Task <OperationResult <bool> > SetActivityAuditStatusAsync(string activityId, string auditUserName, int auditStatus, string remark)
 {
     return(await SalePromotionActivityManager.SetActivityAuditStatusAsync(activityId, auditUserName, auditStatus, remark));
 }
コード例 #4
0
 /// <summary>
 /// 新增促销活动审核权限
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public async Task <OperationResult <int> > InsertAuditAuthAsync(SalePromotionAuditAuth model)
 {
     return(await SalePromotionActivityManager.InsertAuditAuthAsync(model));
 }
コード例 #5
0
 public async Task <OperationResult <IList <SalePromotionActivityProduct> > > GetActivityRepeatProductListAsync(string activityId, string startTime, string endTime)
 {
     return(await SalePromotionActivityManager.GetActivityRepeatProductListAsync(activityId, startTime, endTime));
 }
コード例 #6
0
 public async Task <OperationResult <PagedModel <SalePromotionActivityProduct> > > SelectProductListAsync(SelectActivityProduct condition, int pageIndex, int pageSize)
 {
     return(await SalePromotionActivityManager.SelectProductListAsync(condition, pageIndex, pageSize));
 }
コード例 #7
0
 public async Task <OperationResult <List <SalePromotionActivityDiscount> > > GetActivityContentAsync(string activityId)
 {
     return(await SalePromotionActivityManager.GetActivityContentAsync(activityId));
 }
コード例 #8
0
 public async Task <OperationResult <int> > DeleteProductFromActivityAsync(string pid, string activityId, string userName)
 {
     return(await SalePromotionActivityManager.DeleteProductFromActivityAsync(pid, activityId, userName));
 }
コード例 #9
0
 /// <summary>
 /// 删除促销活动审核权限
 /// </summary>
 /// <param name="PKID"></param>
 /// <returns></returns>
 public async Task <OperationResult <int> > DeleteAuditAuthAsync(int PKID)
 {
     //await Task.Yield();
     // return null;
     return(await SalePromotionActivityManager.DeleteAuditAuthAsync(PKID));
 }
コード例 #10
0
 /// <summary>
 /// 新增促销活动审核权限
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public async Task <OperationResult <int> > InsertAuditAuthAsync(SalePromotionAuditAuth model)
 {
     //await Task.Yield();
     // return null;
     return(await SalePromotionActivityManager.InsertAuditAuthAsync(model));
 }
コード例 #11
0
 public async Task <OperationResult <SalePromotionActivityModel> > GetActivityAndProductsAsync(string activityId, List <string> pidList)
 {
     return(await SalePromotionActivityManager.GetActivityAndProductsAsync(activityId, pidList));
 }
コード例 #12
0
 public async Task <OperationResult <int> > SetProductImageAsync(string activityId, List <string> pidList, string imgUrl, string userName)
 {
     return(await SalePromotionActivityManager.SetProductImageAsync(activityId, pidList, imgUrl, userName));
 }
コード例 #13
0
 public async Task <OperationResult <bool> > RefreshProductAsync(string activityId, List <SalePromotionActivityProduct> productList)
 {
     return(await SalePromotionActivityManager.RefreshProductAsync(activityId, productList));
 }
コード例 #14
0
 /// <summary>
 /// 删除促销活动审核权限
 /// </summary>
 /// <param name="PKID"></param>
 /// <returns></returns>
 public async Task <OperationResult <int> > DeleteAuditAuthAsync(int PKID)
 {
     return(await SalePromotionActivityManager.DeleteAuditAuthAsync(PKID));
 }
コード例 #15
0
 public async Task <OperationResult <bool> > InsertActivityProductListAsync(List <SalePromotionActivityProduct> productList, string activityId, string userName)
 {
     return(await SalePromotionActivityManager.InsertActivityProductListAsync(productList, activityId, userName));
 }
コード例 #16
0
 public async Task <OperationResult <int> > SetProductLimitStockAsync(string activityId, List <string> pidList, int stock, string userName)
 {
     return(await SalePromotionActivityManager.SetProductLimitStockAsync(activityId, pidList, stock, userName));
 }
コード例 #17
0
 public async Task <OperationResult <bool> > InsertActivityAsync(SalePromotionActivityModel model)
 {
     return(await SalePromotionActivityManager.InsertActivityAsync(model));
 }
コード例 #18
0
 public async Task <OperationResult <SelectActivityListModel> > SelectActivityListAsync(SalePromotionActivityModel model, int pageIndex, int pageSize)
 {
     return(await SalePromotionActivityManager.SelectActivityListAsync(model, pageIndex, pageSize));
 }
コード例 #19
0
 /// <summary>
 /// 分页查询用户审核权限
 /// </summary>
 /// <param name="searchModel"></param>
 /// <param name="pageIndex"></param>
 /// <param name="pageSize"></param>
 /// <returns></returns>
 public async Task <OperationResult <PagedModel <SalePromotionAuditAuth> > > SelectAuditAuthListAsync(SalePromotionAuditAuth searchModel, int pageIndex, int pageSize)
 {
     //await Task.Yield();
     // return null;
     return(await SalePromotionActivityManager.SelectAuditAuthListAsync(searchModel, pageIndex, pageSize));
 }
コード例 #20
0
 public async Task <OperationResult <SalePromotionActivityModel> > GetActivityInfoAsync(string activityId)
 {
     return(await SalePromotionActivityManager.GetActivityInfoAsync(activityId));
 }
コード例 #21
0
 /// <summary>
 /// 根据类型和username获取用户审核权限信息
 /// </summary>
 /// <param name="promotionType"></param>
 /// <param name="userName"></param>
 /// <returns></returns>
 public async Task <OperationResult <SalePromotionAuditAuth> > GetUserAuditAuthAsync(int promotionType, string userName)
 {
     //await Task.Yield();
     // return null;
     return(await SalePromotionActivityManager.GetUserAuditAuthAsync(promotionType, userName));
 }
コード例 #22
0
 public async Task <OperationResult <IList <SalePromotionActivityProduct> > > GetRepeatProductListAsync(string activityId, List <string> pidList)
 {
     return(await SalePromotionActivityManager.GetRepeatProductListAsync(activityId, pidList));
 }
コード例 #23
0
 public async Task <OperationResult <bool> > UpdateActivityAfterAuditAsync(SalePromotionActivityModel model)
 {
     return(await SalePromotionActivityManager.UpdateActivityAfterAuditAsync(model));
 }
コード例 #24
0
 public async Task <OperationResult <bool> > AddAndDelActivityProductAsync(string activityId, int stock, List <SalePromotionActivityProduct> addList, List <string> delList, string userName)
 {
     return(await SalePromotionActivityManager.AddAndDelActivityProductAsync(activityId, stock, addList, delList, userName));
 }
コード例 #25
0
 public async Task <OperationResult <bool> > UnShelveActivityAsync(string activityId, string userName)
 {
     return(await SalePromotionActivityManager.UnShelveActivityAsync(activityId, userName));
 }