/***********************************************************************
* Project: baifenBinfa
* ProjectName: 百分兵法管理系统
* Web: http://chuanyin.com
* Author:
* Email:
* CreateTime: 202403/02
* Description: 暂无
***********************************************************************/
using System.Collections.Generic;
using System.Threading.Tasks;
using CoreCms.Net.Configuration;
using CoreCms.Net.DTO;
using CoreCms.Net.Model.Entities;
using CoreCms.Net.Model.ViewModels.Basics;
using CoreCms.Net.Model.ViewModels.DTO;
using CoreCms.Net.Model.ViewModels.UI;
namespace CoreCms.Net.IServices
{
///
/// 促销表 服务工厂接口
///
public interface ICoreCmsPromotionServices : IBaseServices
{
///
/// 购物车的数据传过来,然后去算促销
///
///
///
///
Task ToPromotion(CartDto cart, int type = (int)GlobalEnumVars.PromotionType.Promotion);
///
/// 购物车的数据传过来,然后去算优惠券
///
///
///
///
Task ToCoupon(CartDto cart, List promotions);
///
/// 根据促销信息,去计算购物车的促销情况
///
///
///
///
Task SetPromotion(CoreCmsPromotion promotion, CartDto cartModel);
///
/// 获取团购列表数据(根据类型获取当前可用)
///
///
Task> GetGroupListForPages(int[] promotionIds);
///
/// 获取团购列表数据(根据营销序列)
///
///
Task GetGroupList(int type, int status, int pageIndex, int pageSize);
///
/// 获取团购/秒杀商品详情
///
///
Task GetGroupDetail(int goodId, int userId, int type, bool needSku);
///
/// 获取可领取的优惠券
///
/// 数量
///
Task> ReceiveCouponList(int limit = 3);
///
/// 获取可领取的优惠券(分页)
///
/// 页码
/// 数量
///
Task> GetReceiveCouponList(int page = 1, int limit = 10);
///
/// 获取指定id 的优惠券是否可以领取
///
///
///
Task ReceiveCoupon(int promotionId);
///
/// 获取全局促销列表
///
///
Task> GetPromotionList(int type = (int)GlobalEnumVars.PromotionType.Promotion);
}
}