using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AllBase.Model.Param.WXParam { public class WXCouponParamBase { public WXCouponParam coupon { get; set; } = new WXCouponParam(); public bool? check { get; set; } // true } public class WXCouponParam { public WXCouponKeyParam couponKey { get; set; } = new WXCouponKeyParam(); public WXCouponInfoParam couponInfo { get; set; } = new WXCouponInfoParam(); public int? status { get; set; } // 2-生效中 4-已作废 5-已删除 } public class WXCouponInfoParam { /// /// 活动名称,使用商品ID /// public string name { get; set; } // "10000509758262", public promoteInfoParam promoteInfo { get; set; } = new promoteInfoParam(); public receiveInfoParam receiveInfo { get; set; } = new receiveInfoParam(); public extInfoParam extInfo { get; set; } = new extInfoParam(); public CouponValidInfoParam validInfo { get; set; } = new CouponValidInfoParam(); public discountInfoParam discountInfo { get; set; } = new discountInfoParam(); public mmpayShakeInfoParam mmpayShakeInfo { get; set; } = new mmpayShakeInfoParam(); } public class mmpayShakeInfoParam { public string productName { get; set; } = ""; public string productHeadImgUrl { get; set; } = ""; public string productBackgroundImgUrl { get; set; } = ""; public List productDetailImgUrlList { get; set; } = new List(); } public class discountInfoParam { /// /// 统一折扣或条件折扣的折扣 /// public string discountNum { get; set; } = ""; // "9.9" // 99折; /// /// 满xx减yy的yy /// public string discountFee { get; set; } = "0"; // "1"; /// /// 满减是否可累进(每满xx减yy) /// public bool? isCanUp { get; set; } = false; // false-满xx减yy true-每满xx减yy public discountConditionParam discountCondition { get; set; } = new discountConditionParam(); } public class discountConditionParam { /// /// 参加活动的商品ID列表 /// public List productIds { get; set; } = new List(); // [10000509758262], public List excludeProductIds { get; set; } = new List(); /// /// 条件折扣件数 满xx件打yy折的xx 如果不是条件折扣,填0 /// public int? productCnt { get; set; } = 0; // 0, /// /// 满xx减yy的xx,如果是直减,填"0" /// public string productPrice { get; set; } = "0"; // "50", public List productExtInfoList { get; set; } = new List(); } public class CouponValidInfoParam { /// /// 使用时间 1-和领取时间一致 /// public string validType { get; set; } = "1"; /// /// 领取后有效天数 /// public string validDayNum { get; set; } = ""; /// /// 有效期开始 /// public long? startTime { get; set; } // 1770912000, /// /// 有效期结束 /// public long? endTime { get; set; } // 1774886400, public extRstrInfoParam extRstrInfo { get; set; } = new extRstrInfoParam(); public bool? isSameAsReceiveTime { get; set; } = true; } public class extRstrInfoParam { public bool? needLiving { get; set; } = false; } public class extInfoParam { public long? autoValidTime { get; set; } // 1770912000 } public class receiveInfoParam { /// /// 每人限领张数 /// public int? limitNumOnePerson { get; set; } = 1; /// /// 总发行张数 /// public string totalNum { get; set; } = "100"; public long? startTime { get; set; } // 1770912000, public long? endTime { get; set; } // 1774886400, public string payOrderCnt { get; set; } = ""; // "", public int? minVipLevel { get; set; } = 0; // 0, public List repurchaseProductList { get; set; } = new List(); // [ ], public int? repurchaseProductType { get; set; } = 0; } public class promoteInfoParam { public int? promoteType { get; set; } = 1; public int? promoteChannel { get; set; } = 0; // 0, public List finderList { get; set; } = new List(); // [ ], public List officialAccountList { get; set; } = new List(); // [ ], public List promoterAgencyList { get; set; } = new List(); // [ ] } public class WXCouponKeyParam { public int? couponId { get; set; } = 0; public int? type { get; set; } // 1-条件折扣:满xx件打yy折 2-满减/每满减 3-统一折扣 4-直减 } }