新增营销工具设置三种优惠券
This commit is contained in:
1 parent
19af531572
commit
0210b76c45
28 files changed
+4697
-557
No files matched your search
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace AllBase.Model.Param.PDDCouponParam
|
||||
{
|
||||
public class PDDCouponParam
|
||||
{
|
||||
public bool? ignore_low_price { get; set; } = false; //false
|
||||
public int? source_type { get; set; } //1242
|
||||
public List<create_request> create_request_list { get; set; } = new List<create_request>();
|
||||
public string tool_full_channel { get; set; } // "12110_76109_010921_77272"
|
||||
}
|
||||
|
||||
public class create_request
|
||||
{
|
||||
public long? goods_id { get; set; } // 837311546492,
|
||||
public string batch_desc { get; set; } // "惊喜券",
|
||||
public long? batch_start_time { get; set; } // 1760785200000,
|
||||
public long? batch_end_time { get; set; } // 1760889599999,
|
||||
public int? discount { get; set; } // 300,
|
||||
public object init_quantity { get; set; } // 380, //有时候是int有时候是string
|
||||
public int? user_limit { get; set; } // 2, 每人限领数量
|
||||
public int? period_type { get; set; } // 0,
|
||||
public object duration { get; set; } = 7; // 7, //有时候是int有时候是string
|
||||
public int? status { get; set; } = 2; // 2
|
||||
}
|
||||
}
|
||||
@@ -8,12 +8,15 @@ namespace AllBase.Model.Result.PDDResult
|
||||
{
|
||||
public class PDDCouponGoodsListInfo
|
||||
{
|
||||
public List<object> existed_coupon_list { get; set; }
|
||||
public List<PDDCouponGoods> goods_list { get; set; }
|
||||
public int? remaining_create_num { get; set; }
|
||||
public int? total { get; set; }
|
||||
public List<object> existed_coupon_list { get; set; } = new List<object>();
|
||||
public List<PDDCouponGoods> goods_list { get; set; } = new List<PDDCouponGoods>();
|
||||
public int? remaining_create_num { get; set; } = 1;
|
||||
public int? total { get; set; } = 1;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 设置优惠券活动的商品列表
|
||||
/// </summary>
|
||||
public class PDDCouponGoods
|
||||
{
|
||||
public long? id { get; set; } // 834340794793
|
||||
@@ -28,13 +31,18 @@ namespace AllBase.Model.Result.PDDResult
|
||||
public int? max_coupon_value_rule_code { get; set; } // 3,
|
||||
public int? quantity { get; set; } // 19980,
|
||||
public string thumb_url { get; set; } // "https://img.pddpic.com/gaudit-image/2025-10-11/53d910624aa2976ce40a6f86ee7c152d.jpeg",
|
||||
public bool? is_filtered { get; set; } // false,
|
||||
public bool? is_filtered { get; set; } // false, 如果是true则不能设置优惠券
|
||||
public string filtered_reason { get; set; } // "该商品已售罄"
|
||||
public int? filtered_reason_type { get; set; } // 0,
|
||||
public bool? is_selected { get; set; } // false,
|
||||
public int? recommend_coupon_value { get; set; } // 300,
|
||||
public int? recommend_coupon_value_type { get; set; } // 0,
|
||||
public List<recommend_coupon_value_info> recommend_coupon_value_list { get; set; }
|
||||
public List<int> activity_type_list { get; set; } // [ 10101, 101 ]
|
||||
|
||||
// 自定义参数
|
||||
public string shopId { get; set; }
|
||||
public string shopName { get; set; }
|
||||
}
|
||||
|
||||
public class recommend_coupon_value_info
|
||||
@@ -43,4 +51,45 @@ namespace AllBase.Model.Result.PDDResult
|
||||
public int? recommend_coupon_value_type { get; set; } // 1
|
||||
|
||||
}
|
||||
|
||||
public class PDDCreateCouponResult
|
||||
{
|
||||
public bool? has_errors { get; set; }
|
||||
public List<PDDCreateCouponError> errors { get; set; }
|
||||
public bool? has_create_fail { get; set; }
|
||||
public List<PDDCreateCouponFail> create_fails { get; set; }
|
||||
public bool? has_low_price { get; set; }
|
||||
public List<PDDCreateCouponLowPriceInfo> low_price_infos { get; set; }
|
||||
public List<object> low_price_info_token_list { get; set; }
|
||||
public int? success_num { get; set; }
|
||||
}
|
||||
public class PDDCreateCouponFail
|
||||
{
|
||||
|
||||
}
|
||||
public class PDDCreateCouponLowPriceInfo
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public class PDDCreateCouponError
|
||||
{
|
||||
public string error_item { get; set; } //"833145007089",
|
||||
public string error_msg { get; set; } // "发行量需在1-1000000之间",
|
||||
public long? error_code { get; set; } // 40003,
|
||||
public bool? show_error_msg { get; set; } //false,
|
||||
public long? goods_id { get; set; } // 833145007089,
|
||||
public string goods_name { get; set; } // "鞋子男2025春秋新款男鞋大码韩版潮流软底休闲鞋透气运动鞋男",
|
||||
public string goods_image { get; set; } // "https://img.pddpic.com/gaudit-image/2025-10-09/917efb2ca09067bd07882e98752bacf4.jpeg"
|
||||
}
|
||||
|
||||
public class PDDCreateCouponResultV2
|
||||
{
|
||||
public bool? upload_status { get; set; }
|
||||
public bool? has_error_msg { get; set; }
|
||||
public List<PDDCreateCouponError> error_msg_list { get; set; }
|
||||
public bool? need_phone_code { get; set; }
|
||||
public List<PDDCreateCouponLowPriceInfo> low_price_info_list { get; set; }
|
||||
public string operate_sn { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user