/***********************************************************************
* Project: baifenBinfa
* ProjectName: 百分兵法管理系统
* Web: http://chuanyin.com
* Author:
* Email:
* CreateTime: 202403/02
* Description: 暂无
***********************************************************************/
using System.Threading.Tasks;
using CoreCms.Net.Model.Entities;
using CoreCms.Net.Model.ViewModels.DTO;
using Newtonsoft.Json.Linq;
namespace CoreCms.Net.IServices
{
///
/// 促销条件表 服务工厂接口
///
public interface ICoreCmsPromotionConditionServices : IBaseServices
{
///
/// 检查是否满足条件
///
///
///
///
///
Task check(CoreCmsPromotionCondition conditionInfo, CartDto cart, CoreCmsPromotion promotionInfo);
///
/// 在促销结果中,如果是商品促销结果,调用此方法,判断商品是否符合需求
///
///
///
///
///
Task goods_check(int promotionId, int goodsId, int nums = 1);
///
/// 因为计算过促销条件后啊,前面有些是满足条件的,所以,他们的type是2,后面有不满足条件的时候呢,要把前面满足条件的回滚成不满足条件的
///
///
///
///
CartDto PromotionFalse(CartDto cart, CoreCmsPromotion promotionInfo);
///
/// 订单满XX金额时满足条件
///
/// 参数对象
///
///
int condition_ORDER_FULL(JObject parameters, CartDto cart);
///
/// 所有商品满足条件
///
/// 参数对象
/// 商品序列
/// 数量
///
int condition_GOODS_ALL(JObject parameters, int goodsId, int nums);
///
/// 指定某些商品满足条件
///
/// 参数对象
/// 商品序列
/// 数量
///
int condition_GoodsIdS(JObject parameters, int goodsId, int nums);
///
/// 指定商品分类满足条件
///
/// 参数对象
/// 商品序列
/// 数量
///
Task condition_GOODS_CATS(JObject parameters, int goodsId, int nums);
///
/// 指定商品品牌满足条件
///
/// 参数对象
/// 商品序列
/// 数量
///
Task condition_GOODS_BRANDS(JObject parameters, int goodsId, int nums);
///
/// 指定用户等级满足条件
///
/// 参数对象
/// 用户序列
///
Task condition_USER_GRADE(JObject parameters, int userId);
}
}