Files
KJD_WebService/AllBase/Model/Param/WXParam/WXCoupon.cs
T

146 lines
5.2 KiB
C#

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
{
/// <summary>
/// 活动名称,使用商品ID
/// </summary>
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<string> productDetailImgUrlList { get; set; } = new List<string>();
}
public class discountInfoParam
{
/// <summary>
/// 统一折扣或条件折扣的折扣
/// </summary>
public string discountNum { get; set; } = ""; // "9.9" // 99折;
/// <summary>
/// 满xx减yy的yy
/// </summary>
public string discountFee { get; set; } = "0"; // "1";
/// <summary>
/// 满减是否可累进(每满xx减yy)
/// </summary>
public bool? isCanUp { get; set; } = false; // false-满xx减yy true-每满xx减yy
public discountConditionParam discountCondition { get; set; } = new discountConditionParam();
}
public class discountConditionParam
{
/// <summary>
/// 参加活动的商品ID列表
/// </summary>
public List<long> productIds { get; set; } = new List<long>(); // [10000509758262],
public List<object> excludeProductIds { get; set; } = new List<object>();
/// <summary>
/// 条件折扣件数 满xx件打yy折的xx 如果不是条件折扣,填0
/// </summary>
public int? productCnt { get; set; } = 0; // 0,
/// <summary>
/// 满xx减yy的xx,如果是直减,填"0"
/// </summary>
public string productPrice { get; set; } = "0"; // "50",
public List<object> productExtInfoList { get; set; } = new List<object>();
}
public class CouponValidInfoParam
{
/// <summary>
/// 使用时间 1-和领取时间一致
/// </summary>
public string validType { get; set; } = "1";
/// <summary>
/// 领取后有效天数
/// </summary>
public string validDayNum { get; set; } = "";
/// <summary>
/// 有效期开始
/// </summary>
public long? startTime { get; set; } // 1770912000,
/// <summary>
/// 有效期结束
/// </summary>
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
{
/// <summary>
/// 每人限领张数
/// </summary>
public int? limitNumOnePerson { get; set; } = 1;
/// <summary>
/// 总发行张数
/// </summary>
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<object> repurchaseProductList { get; set; } = new List<object>(); // [ ],
public int? repurchaseProductType { get; set; } = 0;
}
public class promoteInfoParam
{
public int? promoteType { get; set; } = 1;
public int? promoteChannel { get; set; } = 0; // 0,
public List<object> finderList { get; set; } = new List<object>(); // [ ],
public List<object> officialAccountList { get; set; } = new List<object>(); // [ ],
public List<object> promoterAgencyList { get; set; } = new List<object>(); // [ ]
}
public class WXCouponKeyParam
{
public int? couponId { get; set; } = 0;
public int? type { get; set; } // 1-条件折扣:满xx件打yy折 2-满减/每满减 3-统一折扣 4-直减
}
}