Files
KJD/AllBase/Model/Param/PDDProdParam/PDDProductUploadParam.cs
T
2025-09-23 09:25:31 +08:00

276 lines
12 KiB
C#

using AllBase.Model.Result.PDDResult;
using NaiBa.Util.Extension;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AllBase.Model.Param.PDDProdParam
{
public class PDDProductUploadParam
{
public long? goods_id { get; set; }
public string goods_commit_id { get; set; }
public List<object> goods_commit_check { get; set; } = new List<object>();
public List<object> reject_reason { get; set; } = new List<object>();
public string reject_status { get; set; } = "";
public int? check_status { get; set; } = 9;
public string goods_name { get; set; }
public List<object> carousel_video { get; set; } = new List<object>();
public List<object> detail_video { get; set; } = new List<object>();
public string goods_desc { get; set; }
public string warm_tips { get; set; } = "";
public int? cat_id { get; set; }
public List<string> cats { get; set; }
public string image_url { get; set; } = "";
public object oversea_goods { get; set; } = new object();
public object spu { get; set; } = new object();
public isbn_properties_related_param isbn_properties_related { get; set; }
public List<object> propertys_standard { get; set; }
/// <summary>
/// 是否草稿
/// </summary>
public bool? is_draft { get; set; } = false;
public string goods_name_prefix { get; set; } = "";
public string name_prefix { get; set; } = "";
public object size_spec_id { get; set; }
public object is_gold_price_matched { get; set; }
public bool hasBatchEnter { get; set; } = false;
public instruction_vo_item instruction_vo { get; set; }
public List<object> ai_carousel_gallery { get; set; } = new List<object>();
public List<object> explanation_video { get; set; } = new List<object>();
public List<object> tag_price_gallery { get; set; } = new List<object>();
public List<object> ingredient_gallery { get; set; } = new List<object>();
public List<object> nutrition_gallery { get; set; } = new List<object>();
public List<object> ai_goods_video { get; set; } = new List<object>();
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 instruction_template_id { get; set; }
public bool? first_upload_carousel { get; set; } = true;
public int? propertys_tid { get; set; } // 手套 27715 获取接口Get方法:https://mms.pinduoduo.com/draco-ms/mms/template/mall?catId=17031&goodsCommitId=168372796489&goodsId=816294785499
public bool? propertys_edit_search_spu { get; set; } = false;
public long? service_time { get; set; }
public int? electric_status { get; set; } = 0;
public bool? isGoodsLock { get; set; } = false;
public bool? imageEnhanceGray { get; set; } = false;
public bool? materialModalAbGray { get; set; } = true;
public bool? uploadDragAB { get; set; } = false;
public bool? materialReplaceTagGray { get; set; } = true;
public bool? hide_apply { get; set; } = false;
public bool? showGoodsInstruction { get; set; } = true;
public bool? decorationCanEdit { get; set; } = true;
public bool? must_have_spu { get; set; } = false;
public bool? can_not_change_cat { get; set; } = false;
public bool? can_not_change_spu { get; set; } = false;
public bool? is_transfer_spu { get; set; } = false;
public List<title_keyword_param> title_keywords { get; set; }
public object title_recommend { get; set; }
public string prefillWhitePic { get; set; }
public string tiny_name { get; set; }
public List<PDDProdfloorItem> decorationDetail { get; set; }
public string decorationPreview { get; set; }
public object size_parent_spec_id { get; set; }
public int? is_shop { get; set; } = 0;
public int? goods_type { get; set; } = 1;
public int? invoice_status { get; set; } = 0;
public int? privacy_delivery { get; set; } = 0;
public object invoice_mode { get; set; }
public int? zhi_huan_bu_xiu { get; set; } = 0;
public int? quan_guo_lian_bao { get; set; } = 0;
public int? second_hand { get; set; } = 0;
public bool? is_two_num_group { get; set; } = false;
public int? is_pre_sale { get; set; } = 0;
public string pre_sale_time { get; set; }
public string country_id { get; set; } = "0";
public int? origin_country_id { get; set; } = 0;
public string warehouse { get; set; }
public string customs { get; set; }
public int? is_customs { get; set; } = 0;
public long? shipment_limit_second { get; set; } = 172800;
public object delivery_type { get; set; }
public long? cost_template_id { get; set; } //136204643207510;
public string weight { get; set; } = "";
public bool? is_all_weight_same { get; set; } = true;
public group_item groups { get; set; }
public int? is_folt { get; set; } = 0;
public int? is_refundable { get; set; } = 1;
public int? thawed_refund { get; set; } = 0;
public int? damage_claim { get; set; } = 0;
public int? lack_of_weight_claim { get; set; } = 0;
public int? goods_certificate { get; set; } = 0;
public int? goods_pattern { get; set; } = 8;
public int? customizable { get; set; } = 0;
public object local_service_id_list { get; set; }
public int? shop_group_id { get; set; } = 0;
public schedule_sale_param schedule_sale { get; set; }
public List<object> card_verification_list { get; set; } = new List<object>();
public bool? is_spring_festival_open_tag { get; set; } = false;
public List<object> transport_type_list { get; set; } = new List<object>();
public int? is_refundable_fifteen_day { get; set; } = 0;
public int? is_warranty_one_year { get; set; } = 0;
public extend_warranty_dto_param extend_warranty_dto { get; set; }
public string home_delivery_template_name { get; set; } = "";
public object invoice_mode_sub_type { get; set; }
public int? is_certificate_provide { get; set; } = 0;
public bool? isAddLocalCityGoods { get; set; } = false;
public int? is_customized { get; set; } = 0;
public bool? isCoupon { get; set; } = false;
public bool? allow_purchase_info_supply { get; set; } = false;
public int? effect_logistics_weight_limit { get; set; } = 20000;
public int? same_city_template_id { get; set; } = 0;
public int? is_default_template_id { get; set; } = 1;
public object cost_template_error { get; set; } = "";
public int? allergy_refund { get; set; } = 0;
public int? is_wp_service { get; set; } = 0;
public int? is_size_change_casually { get; set; } = 0;
public int? origin_is_pre_sale { get; set; } = 0;
public List<object> goods_srv_templates { get; set; } = new List<object>();
public bool? is_only_for_remote_area { get; set; } = false;
public bool? default_template_gray { get; set; } = true;
public int? shipment_limit_second_origin_value { get; set; } = 0;
public object elec_goods_attributes { get; set; }
public int? delivery_one_day { get; set; } = 0;
public int? is_sku_shipment { get; set; } = 0;
public object mai_jia_zi_ti { get; set; }
public object shang_men_an_zhuang { get; set; }
public object song_huo_an_zhuang { get; set; }
public object song_huo_ru_hu { get; set; }
public List<object> qualification_id_list { get; set; } = new List<object>();
public List<sku_param> skus { get; set; }
public string market_price_in_yuan { get; set; }
public int? market_price { get; set; }
public string out_goods_sn { get; set; } = "";
public int? dead_line_seconds { get; set; } = 86399;
public int? two_pieces_discount { get; set; } = 95;
public int? gold_price_template_id { get; set; } = 0;
public int? processing_charges { get; set; } = 0;
public string processing_charges_in_yuan { get; set; } = "0";
public int? processing_charges_type { get; set; } = 0;
public List<gallery_param> gallery { get; set; }
public int? is_sku_pre_sale { get; set; } = 0;
public int? is_group_pre_sale { get; set; } = 0;
//public List<goods_property_param> goods_properties { get; set; }
public List<goods_spec_property_param> goods_properties { get; set; }
public object is_goods_copy { get; set; }
public bool? is_auto_save { get; set; } = false;
public string validate_message { get; set; }
public string validate_message_v2 { get; set; }
/// <summary>
/// anti-content
/// </summary>
public string crawlerInfo { get; set; }
}
public class goods_property_param
{
public long? template_pid { get; set; }
public long? template_module_id { get; set; }
public int? ref_pid { get; set; }
public int? pid { get; set; }
public int? vid { get; set; }
public string value { get; set; }
public string value_unit { get; set; }
public string content { get; set; }
}
public class goods_spec_property_param : goods_property_param
{
// 以下为sku属性
public long? parent_spec_id { get; set; }
public long? spec_id { get; set; }
public string note { get; set; }
public string img_url { get; set; }
public int? group_id { get; set; }
}
public class gallery_param
{
public string url { get; set; }
public int? type { get; set; }
public object file_id { get; set; }
}
public class extend_warranty_dto_param
{
public int? extend_warranty { get; set; } = 0;
}
public class schedule_sale_param
{
public int? sale_type { get; set; } = 0;
}
public class title_keyword_param
{
public string keyword { get; set; }
public string source { get; set; }
public bool? hot { get; set; }
public object rk { get; set; }
public object bad_keyword { get; set; }
public object good_tag_desc { get; set; }
public object bad_tag_desc { get; set; }
}
public class isbn_properties_related_param
{
public bool? isInit { get; set; } = true;
}
public class sku_param
{
public long? id { get; set; }
public long? sku_id { get; set; }
public int? limit_quantity { get; set; }
public string out_sku_sn { get; set; }
public int? is_onsale { get; set; }
public int? pre_sale_time { get; set; }
public string multi_price_in_yuan
{
get { return (multi_price.ParseToInt() * 0.01).ParseToString(); }
set { }
}
public string price_in_yuan
{
get { return (price.ParseToInt() * 0.01).ParseToString(); }
set { }
}
public int? multi_price { get; set; }
public int? price { get; set; }
public int? quantity_delta { get; set; }
public string thumb_url { get; set; }
public long? thumb_url_file_id { get; set; }
public int? weight { get; set; }
public List<spec_param> spec { get; set; }
public object length { get; set; }
public object oversea_sku { get; set; }
public string sku_srv_templates { get; set; }
public List<object> shipment_limit_second_list { get; set; }
public string sku69_code { get; set; }
}
public class spec_param
{
public long? parent_id { get; set; }
public string parent_name { get; set; }
public long? spec_id { get; set; }
public string spec_name { get; set; }
public object is_custom { get; set; }
}
}