活动报名逻辑优化

This commit is contained in:
wule committed 2025-09-26 09:23:05 +08:00
1 parent d01d3bc306
commit 8fb90422a2
15 files changed
+1736 -291

No files matched your search

@@ -8,19 +8,23 @@ namespace AllBase.Model.Param.PDDProdParam
{
public class PDDActivitySubmitParam
{
public long? activity_id { get; set; } = 20981;
public long? activity_id { get; set; } = 20981; //23620 21365 15996
public List<goods_vo_param> goods_volist { get; set; } = new List<goods_vo_param>();
public create_protocol_vo_item create_protocol_vo { get; set; } = new create_protocol_vo_item();
public object custom_ability_vo { get; set; } = new object();
public create_outer_activity_price_ratio_vo_item create_outer_activity_price_ratio_vo { get; set; } = new create_outer_activity_price_ratio_vo_item();
public enroll_source_ctx_item enroll_source_ctx { get; set; } = new enroll_source_ctx_item();
public string behavior_collection_v1_cas_boost_factor { get; set; } = "dXlyaGxldXItNDkwOTQzMTM0LTE3NTgzNzMzNDQwMjE=";
// 15996 dXlyaGxldXItNDkwOTQzMTM0LTE3NTg2OTQxODA2MzE=
public string behavior_collection_v1_cas_boost_factor { get; set; } = "dXlyaGxldXItNDkwOTQzMTM0LTE3NTgzNzMzNDQwMjE=";
}
public class enroll_source_ctx_item
{
public int? enroll_type { get; set; } = 34;
public string scene_full_coverage { get; set; } = "mmsActQuickEnrollMultiActivityRealTableV1";
public string source_type { get; set; } = "PROMO-OwnHome_MultiActEnrollMMS";
public int? enroll_type { get; set; } = 3; // 20981 34, 15996 3
public string scene_full_coverage { get; set; } = "mmsActBatchEnrollV1"; // 20981 mmsActQuickEnrollMultiActivityRealTableV1, 15996 mmsActBatchEnrollV1
public string source_type { get; set; } = "MMSActicon"; // 20981 PROMO-OwnHome_MultiActEnrollMMS, 15996 MMSActicon
public string scene_type { get; set; } = "ActivityCard"; // 10981 无, 15996 ActivityCard
}
public class create_outer_activity_price_ratio_vo_item
@@ -30,27 +34,40 @@ namespace AllBase.Model.Param.PDDProdParam
public class create_protocol_vo_item
{
public bool? need_create_cost_template { get; set; } = true;
public bool? need_create_cost_template { get; set; } = false; //如运费模板不满足要求,同意为您自动切换为活动适用的运费模板
}
public class goods_vo_param
{
public long? goods_id { get; set; }
public object create_goods_coupon_vo { get; set; } = new object();
public object create_finance_cost_vo { get; set; } = new object();
public create_material_vo_param create_material_vo { get; set; } = new create_material_vo_param();
public view_confirmed_goods_protocol_vo_item view_confirmed_goods_protocol_vo { get; set; } = new view_confirmed_goods_protocol_vo_item();
public create_activity_price_vo_item create_activity_price_vo { get; set; } = new create_activity_price_vo_item();
public create_discount_vo_item create_discount_vo { get; set; }
}
public class create_discount_vo_item {
public int? multi_percent_discount { get; set; } = 99;
public bool? hit_multi_percent { get; set; } = true;
}
public class create_activity_price_vo_item
{
public List<create_sku_vo_item> create_sku_vos { get; set; } = new List<create_sku_vo_item>();
public create_traffic_protect_vo_item create_traffic_protect_vo { get; set; } = new create_traffic_protect_vo_item();
public object create_quantity_vo { get; set; } = new object();
public create_quantity_vo_item create_quantity_vo { get; set; } = new create_quantity_vo_item();
public object create_time_vo { get; set; } = new object();
}
public class create_quantity_vo_item {
public int? goods_activity_quantity { get; set; }
}
public class create_traffic_protect_vo_item
{
public int? max_cut_price_amount { get; set; } = 100;
public int? max_cut_price_amount { get; set; } = 50; //任意规格当前价失效时,降价0.5元恢复活动权益 //可考虑转换为总价的百分比
}
public class create_sku_vo_item
@@ -65,16 +82,22 @@ namespace AllBase.Model.Param.PDDProdParam
public int? filling_sku_price { get; set; }
public int? gear_rule { get; set; }
public int? require_price { get; set; }
public int? filling_sku_price_gear_rule { get; set; } = 1001; // 1001
public object algorithm_decorate_sku_price { get; set; } // null
public object tags { get; set; } // null
}
public class view_confirmed_goods_protocol_vo_item
{
public object confirm_hit_cut_price { get; set; } = null;
public bool? confirm_copy_goods_for_customer_num { get; set; } = false;
public bool? confirm_hit_high_commission { get; set; } = false;
}
public class create_material_vo_param
{
public object create_goods_image_vo { get; set; } = new object();
public object create_goods_title_vo { get; set; } = new object();
}
}
@@ -0,0 +1,80 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AllBase.Model.Param.PDDProdParam20981
{
public class PDDActivitySubmitParam20981
{
public long? activity_id { get; set; } = 20981;
public List<goods_vo_param> goods_volist { get; set; } = new List<goods_vo_param>();
public create_protocol_vo_item create_protocol_vo { get; set; } = new create_protocol_vo_item();
public create_outer_activity_price_ratio_vo_item create_outer_activity_price_ratio_vo { get; set; } = new create_outer_activity_price_ratio_vo_item();
public enroll_source_ctx_item enroll_source_ctx { get; set; } = new enroll_source_ctx_item();
public string behavior_collection_v1_cas_boost_factor { get; set; } = "dXlyaGxldXItNDkwOTQzMTM0LTE3NTgzNzMzNDQwMjE=";
}
public class enroll_source_ctx_item
{
public int? enroll_type { get; set; } = 34;
public string scene_full_coverage { get; set; } = "mmsActQuickEnrollMultiActivityRealTableV1";
public string source_type { get; set; } = "PROMO-OwnHome_MultiActEnrollMMS";
}
public class create_outer_activity_price_ratio_vo_item
{
public bool? merchant_confirm_outer_activity_price_ratio { get; set; } = true;
}
public class create_protocol_vo_item
{
public bool? need_create_cost_template { get; set; } = true;
}
public class goods_vo_param
{
public long? goods_id { get; set; }
public create_material_vo_param create_material_vo { get; set; } = new create_material_vo_param();
public view_confirmed_goods_protocol_vo_item view_confirmed_goods_protocol_vo { get; set; } = new view_confirmed_goods_protocol_vo_item();
public create_activity_price_vo_item create_activity_price_vo { get; set; } = new create_activity_price_vo_item();
}
public class create_activity_price_vo_item
{
public List<create_sku_vo_item> create_sku_vos { get; set; } = new List<create_sku_vo_item>();
public create_traffic_protect_vo_item create_traffic_protect_vo { get; set; } = new create_traffic_protect_vo_item();
public object create_quantity_vo { get; set; } = new object();
}
public class create_traffic_protect_vo_item
{
public int? max_cut_price_amount { get; set; } = 50;
}
public class create_sku_vo_item
{
public sku_front_ctx_vo_item sku_front_ctx_vo { get; set; }
public int? sku_activity_price { get; set; }
public long? sku_id { get; set; }
}
public class sku_front_ctx_vo_item
{
public int? filling_sku_price { get; set; }
public int? gear_rule { get; set; }
public int? require_price { get; set; }
}
public class view_confirmed_goods_protocol_vo_item
{
public object confirm_hit_cut_price { get; set; } = null;
}
public class create_material_vo_param
{
public object create_goods_image_vo { get; set; } = new object();
}
}
@@ -48,7 +48,7 @@ namespace AllBase.Model.Param.PDDProdParam
public int? third_type { get; set; } = 0;
public List<int?> cat_ids { get; set; }
public int? bad_fruit_claim { get; set; } = 0;
public List<object> booking_notes { get; set; } = new List<object>();
public object booking_notes { get; set; } = new object();
public object instruction_template_id { get; set; }
public bool? first_upload_carousel { get; set; } = true;
@@ -57,7 +57,7 @@ namespace AllBase.Model.Result.PDDResult
public class GoodsTrafficProtectInfoItem
{
public bool? high_sensitive_goods { get; set; } //false,
public int? fill_max_cut_price_amount { get; set; } //100
public int? fill_max_cut_price_amount { get; set; } //100 //维持活动降价
}
@@ -0,0 +1,130 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AllBase.Model.Result.PDDResult
{
public class PDDActivityRuleInfo
{
public long? activity_id { get; set; }
public object activity_start_time { get; set; }
public object activity_end_time { get; set; }
public List<long?> goods_id_list { get; set; }
public List<object> enroll_goods_gear_discount_white_list { get; set; }
public Dictionary<string, enroll_rule_param_map_item> enroll_rule_param_map { get; set; } // key是goodsid
public object mall_enroll_rule_param_map { get; set; }
public bool? one_key_enroll { get; set; } // false
public string important_tips { get; set; } // "1. 报名秒杀活动的价格【不会被计入历史最低价】,下资源位后会回到正常售卖价左右,实际根据实时的全网最低价决定<br/>\n2. 若商家对回价后的价格不满意,请不要接受回价邀请!!即使不接受,秒杀价也不会计入最低价<br/>\n3. 晋升期间,不要报名其他同类型秒杀活动,否则晋升通路将会中断!<br/>\n4、请商家遵守平台规则,非真实购买产生的订单,将会直接中断晋升流程<br/>\n5、请确认保证金充足、线上库存充足,否则确认排期后,也会上线失败的哦!<br/>"
public long? system_time { get; set; } // 1758784633499
public object supply_tool_activity_introduction_list { get; set; }
public bool? return_price { get; set; }
public object comeback { get; set; }
public List<goods_cat_info_volist_item> goods_cat_info_volist { get; set; }
public bool? spring_festival_exclusive_activity { get; set; }
}
public class goods_cat_info_volist_item
{
public long? goods_id { get; set; } // 822826473337,
public long? cat_id1 { get; set; } //16989,
public bool? not_default_selection { get; set; } // false
}
public class enroll_rule_param_map_item
{
public enroll_mall_part_select_sku_item enroll_mall_part_select_sku { get; set; }
public Dictionary<string, enroll_sku_compute_min_quantity_by_sale_percent_item> enroll_sku_compute_min_quantity_by_sale_percent { get; set; } // key是skuid
public enroll_mall_sign_cut_price_compensation_item enroll_mall_sign_cut_price_compensation { get; set; }
public enroll_goods_activity_quantity_item enroll_goods_activity_quantity { get; set; }
public enroll_mall_sign_manfan_item enroll_mall_sign_manfan { get; set; }
public object enroll_goods_outer_activity_price_rule { get; set; }
public enroll_goods_resource_price_item enroll_goods_spike_price { get; set; }
public enroll_goods_restrict_activity_price_item enroll_goods_restrict_activity_price { get; set; }
public enroll_goods_activity_image_item enroll_goods_activity_image { get; set; }
public enroll_goods_shipping_config_item enroll_goods_shipping_config { get; set; }
public enroll_goods_free_return_new_item enroll_goods_free_return_new { get; set; }
}
public class enroll_goods_free_return_new_item
{
public bool? selected { get; set; } // true,
public object need_sign_free_return_protocol { get; set; } // null,
public object free_return_protocol_type { get; set; } // null,
public object need_open_free_return_service { get; set; } // null
}
public class enroll_goods_shipping_config_item
{
public object goods_id { get; set; } // null,
public bool? need_create_cost_template { get; set; } // false,
public bool? not_default_selection { get; set; } // false,
public object cost_template_id { get; set; } // null,
public object cost_template_name { get; set; } // null,
public object valuation { get; set; } // null,
public object delivery_region { get; set; } // null,
public object free_shipping_region { get; set; } // null,
public object not_free_shipping_region { get; set; } // null,
public object not_shipping_region { get; set; } // null
}
public class enroll_goods_activity_image_item
{
public object system_recommend { get; set; } // null,
public int? type { get; set; } // 0,
public int? special_image_type { get; set; } // 2,
public string template_image_url { get; set; } // "http://t00img.yangkeduo.com/goods/images/2018-10-08/d2fe9370d3706ad13bb4b5f066c8347a.jpeg",
public string template_file_url { get; set; } // "http://commoncdn.yangkeduo.com/pdd_oms/2018-10-11/9fb1cbead4b6f46945c0f205f8670dc7.psd",
public string image_comment { get; set; } // "此处图片更改、上传、删除操作同步商品素材-场景图",
public string goods_activity_image_url { get; set; } // null,
public string suggest_activity_image_url { get; set; } // null,
public int? check_status { get; set; } // 0,
public object graph_id { get; set; } // null,
public bool? required { get; set; } // true,
public int? default_sync_type { get; set; } // 2,
public object time_out_degrade_gray { get; set; } // null,
public bool? all_filled { get; set; } //false
}
public class enroll_mall_sign_manfan_item
{
public object need_sign_manfan_protocol { get; set; } // null,
public object time_out_degrade_gray { get; set; } // null,
public object need_join_manfan_act { get; set; } // null,
public object goods_join_manfan_act_info_content { get; set; } // null,
public object protocol_type { get; set; } // null
}
public class enroll_goods_activity_quantity_item
{
public int? min_activity_quantity { get; set; } // 110
public int? max_activity_quantity { get; set; } // 110
}
public class enroll_mall_sign_cut_price_compensation_item
{
public object need_pop { get; set; } // null,
public bool? hit_cut_price { get; set; } // true,
public int? protocol_type { get; set; } // 21,
public string enroll_popup_code { get; set; } // "cut_price_compensation",
public int? priority { get; set; } // 5
}
public class enroll_sku_compute_min_quantity_by_sale_percent_item
{
public long? sku_id { get; set; }
public int? min_quantity { get; set; }
}
public class enroll_mall_part_select_sku_item
{
public bool? can_part_select { get; set; }
public object max_sku_number { get; set; }
}
}
@@ -0,0 +1,132 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AllBase.Model.Result.PDDResult
{
public class PDDActivitySuggestPriceInfo
{
public long? activity_id { get; set; }
public object activity_start_time { get; set; }
public object activity_end_time { get; set; }
public List<long?> goods_id_list { get; set; }
public object enroll_goods_gear_discount_white_list { get; set; }
public List<enroll_goods_rule_vo_item> enroll_goods_rule_vos { get; set; }
public object one_key_enroll { get; set; } //null,
public object important_tips { get; set; } //null,
public object is_split_suggest_price_grey { get; set; } //null,
public object supply_tool_activity_introduction_list { get; set; } //null
}
public class enroll_goods_rule_vo_item
{
public long? goods_id { get; set; }
public enroll_rule_item enroll_rule_param { get; set; }
public object all_information_filled { get; set; } //null,
public object ef_multi_activity_field { get; set; } //null,
public object ef_single_price_field { get; set; } //null
}
public class enroll_rule_item
{
public enroll_goods_resource_price_item enroll_goods_resource_price { get; set; }
public enroll_goods_resource_price_item enroll_goods_big_sale_price { get; set; }
public enroll_goods_restrict_activity_price_item enroll_goods_restrict_activity_price { get; set; }
}
public class enroll_goods_restrict_activity_price_item
{
public long? goods_id { get; set; } // 824814978521,
public object recent30_day_min_price { get; set; } // null,
public bool? not_must_less_than_restrict { get; set; } // true,
public bool? has_same_group_price_sort_restricted { get; set; } // false,
public bool? prohibit_mms_set_price { get; set; } // false,
public object discount_amount { get; set; } // null
}
public class enroll_goods_resource_price_item
{
public bool? hit_multi_percent { get; set; } // true
public int? multi_percent_discount_suggest { get; set; } // 99
public int? multi_percent_discount_weak_suggest { get; set; } // 95,
public int? multi_percent_discount_current { get; set; } // 95,
public int? multi_percent_discount { get; set; } // null,
public goods_traffic_protect_info_item goods_traffic_protect_info { get;set; }
public bool? time_out_degrade_gray { get; set; } // true,
public int? goods_on_sale_quantity { get; set; } // 2376,
public object not_daily_sale_start_time { get; set; } // null,
public object not_daily_sale_end_time { get; set; } // null,
public object session_start_time { get; set; } // null,
public object session_end_time { get; set; } // null,
public long? goods_id { get; set; } // 824814978521,
public List<sku_info_list_item> sku_info_list { get; set; }
public object can_equal { get; set; } // null,
public bool? need_goods_activity_quantity { get; set; } // false,
public object merchant_config_activity_price_time { get; set; } // null,
public object goods_activity_quantity { get; set; } // null,
public object parent_event_id { get; set; } // null,
public object bid_mock_enroll { get; set; } // null
}
public class sku_info_list_item
{
public long? activity_sku_id { get; set; }
public long? sku_id { get; set; }
public List<spec_info_list_item> spec_info_list { get; set; }
public string spec_info_str { get; set; } //5209黑色-升级款,36",
public object min_sale_price { get; set; } //null,
public int? group_price { get; set; } //5800,
public int? quantity { get; set; } //99,
public int? current_activity_price { get; set; } //5800,
public int? require_price { get; set; } //2544,
public int? gear_rule { get; set; } //23,
public int? filling_sku_price { get; set; } // 2540,
public int? filling_sku_price_gear_rule { get; set; } //1001,
public object algorithm_decorate_sku_price { get; set; } //null,
public List<suggest_price_expression_dtolist_item> suggest_price_expression_dtolist { get; set; }
public object cannot_change_price { get; set; } //null,
public int? multi_percent_suggest_price { get; set; } //2518,
public int? multi_percent_current_price { get; set; } //5742,
public object tags { get; set; } //null,
public object not_pre_fill_sku_price { get; set; } // null,
public object resource_price { get; set; } // null,
public object is_subsidize { get; set; } // null,
public object subsidize_cost_price { get; set; } //null
}
public class suggest_price_expression_dtolist_item
{
public int? price { get; set; }
public List<price_formula_item> price_formula { get; set; }
}
public class price_formula_item
{
public string field { get; set; } //"建议价",
public string value { get; set; } //"25.44 元",
public string desc { get; set; } //"平台综合优势价"
public object sim_goods_id { get; set; } //-8542661231593884883,
public object sim_sku_id { get; set; } // -8542660862743813332,
public string sim_sku_id_str { get; set; } //"-8542660862743813332",
public string sim_goods_id_str { get; set; } //-8542661231593884883",
public object sim_platform { get; set; } //null
}
public class spec_info_list_item
{
public long? spec_id { get; set; } //24714699485,
public string spec { get; set; } //颜色分类",
public object parent_id { get; set; } //null,
public string spec_value { get; set; } //5209黑色-升级款"
}
public class goods_traffic_protect_info_item
{
public bool? high_sensitive_goods { get; set; } //false,
public int? fill_max_cut_price_amount { get; set; } //100
}
}
@@ -88,8 +88,8 @@ namespace AllBase.Model.Result.PDDResult
public object song_huo_an_zhuang { get; set; }
public object mai_jia_zi_ti { get; set; }
public object sf_markup_template_sn { get; set; }
public int? min_group_price { get; set; }
public int? max_group_price { get; set; }
public long? min_group_price { get; set; }
public long? max_group_price { get; set; }
public int? must_check_type { get; set; }
public object goods_property_list { get; set; }
public object is_small_group { get; set; }