Files
KJD_WebService/AllBase/Model/Param/SalesManage/PromotionAddParam.cs
T
2025-06-29 19:38:31 +08:00

51 lines
4.8 KiB
C#
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AllBase.Model.Param.SalesManage
{
// 直降  {"sub_stype":"0","shop_stype":"2","title":"123454321","time_set_type":"0","promotion_goods":[{"product_id":"3548176868555547395","title":"不锈钢铁板烧料理铲子西餐披萨铲刀手抓饼压铲生煎饼工具炒冰铲子","cover":"https://p9-aio.ecombdimg.com/obj/ecom-shop-material/v1_NxryKpcR_70963536160382815020819_1ad5b45b1ae22a3fdb44cbe31f490e02_sx_148382_www800-800","config_scope":"0","promotion_skus":[{"id":"1732508235120728","camp_stock_num":"1","user_limit":"1","price":"undefined","shop_svalue":"200"},{"id":"1732508235120712","camp_stock_num":"5","user_limit":"1","price":"undefined","shop_svalue":"100"}]}],"order_expire_time":"600","pre_begin_time":"2022-05-14 20:30:00","begin_time":"2022-05-16 00:00:00","end_time":"2022-05-16 23:59:59","sold_out_type":"1","create_action_type":"0"}
// 一口价 {"sub_stype":"0","shop_stype":"1","title":"33333","time_set_type":"0","promotion_goods":[{"product_id":"3548176868555547395","title":"不锈钢铁板烧料理铲子西餐披萨铲刀手抓饼压铲生煎饼工具炒冰铲子","cover":"https://p3-aio.ecombdimg.com/obj/ecom-shop-material/v1_NxryKpcR_70963536160382815020819_1ad5b45b1ae22a3fdb44cbe31f490e02_sx_148382_www800-800","config_scope":"0","promotion_skus":[{"id":"1732508235120728","camp_stock_num":"3","user_limit":"2","price":"3800"}]}],"order_expire_time":"300","pre_begin_time":"2022-05-16 00:00:00","begin_time":"2022-05-16 00:00:00","end_time":"2022-05-16 23:59:59","sold_out_type":"1","create_action_type":"0"}
//     {"sub_stype":"0","shop_stype":"1","title":"3213","time_set_type":"1","promotion_goods":[{"product_id":"3548176868555547395","title":"不锈钢铁板烧料理铲子西餐披萨铲刀手抓饼压铲生煎饼工具炒冰铲子","cover":"https://p3-aio.ecombdimg.com/obj/ecom-shop-material/v1_NxryKpcR_70963536160382815020819_1ad5b45b1ae22a3fdb44cbe31f490e02_sx_148382_www800-800","config_scope":"0","promotion_skus":[{"id":"1732508235120728","camp_stock_num":"1","user_limit":"1","price":"3900"},{"id":"1732508235120712","camp_stock_num":"1","user_limit":"1","price":"2800"},{"id":"1732508235119736","camp_stock_num":"1","user_limit":"1","price":"2800"}]}],"order_expire_time":"300","pre_begin_time":"2022-05-16 12:23:41","begin_time":"2022-05-16 12:23:41","end_time":"2022-05-16 12:53:41","sold_out_type":"0","create_action_type":"0"}
// 折扣  {"sub_stype":"0","shop_stype":"3","title":"5555","time_set_type":"0","promotion_goods":[{"product_id":"3548176868555547395","title":"不锈钢铁板烧料理铲子西餐披萨铲刀手抓饼压铲生煎饼工具炒冰铲子","cover":"https://p6-aio.ecombdimg.com/obj/ecom-shop-material/v1_NxryKpcR_70963536160382815020819_1ad5b45b1ae22a3fdb44cbe31f490e02_sx_148382_www800-800","config_scope":"0","promotion_skus":[{"id":"1732508235120728","camp_stock_num":"1","user_limit":"3","price":"undefined","shop_svalue":"90"},{"id":"1732508235120712","camp_stock_num":"2","user_limit":"4","price":"undefined","shop_svalue":"90"},{"id":"1732508235119736","camp_stock_num":"3","user_limit":"1","price":"undefined","shop_svalue":"90"}]}],"order_expire_time":"300","pre_begin_time":"2022-05-16 00:00:00","begin_time":"2022-05-16 00:00:00","end_time":"2022-05-16 23:59:59","sold_out_type":"0","create_action_type":"0"}
public class PromotionAddParam
{
public string sub_stype { get; set; } = "0";
/// <summary>
/// 优惠方式 "1":一口价 "2":直降 "3":折扣
/// </summary>
public string shop_stype { get; set; } = "2";
/// <summary>
/// 活动标题
/// </summary>
public string title { get; set; }
/// <summary>
/// 活动时间 "0":按按开始结束时间设置 "1":按时间段选择
/// </summary>
public string time_set_type { get; set; } = "0";
/// <summary>
/// 订单取消时间 单位:秒,默认5分钟
/// </summary>
public string order_expire_time { get; set; } = "300";
/// <summary>
/// 预热开始时间 2022-05-14 20:30:00"
/// </summary>
public string pre_begin_time { get; set; }
/// <summary>
/// 活动开始时间 2022-05-16 00:00:00
/// </summary>
public string begin_time { get; set; }
/// <summary>
/// 活动结束时间 2022-05-16 23:59:59
/// </summary>
public string end_time { get; set; }
/// <summary>
/// 活动库存售罄设置 "0":恢复为原价继续售卖 "1":停止售卖,商品标示“已抢光”
/// </summary>
public string sold_out_type { get; set; } = "0";
public string create_action_type { get; set; } = "0";
}
}