using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Work.Api { public class CatTemplateBase { public OpenApiResponseBase open_api_response = new OpenApiResponseBase(); } public class OpenApiResponseBase { /// /// 模板允许的最大的自定义规格数量 /// public int? input_max_spec_num = 0; /// /// 为true时限定规格要么全选要么全不选 /// public bool? choose_all_qualify_spec = false; /// /// 单个自定义规格值上限 /// public int? single_spec_value_num = 0; /// /// 最大sku数目上限 /// public int? max_sku_num = 0; public List properties = new List(); } public class PropertiesBase { public int? id = 0; public string name_alias = ""; public string name = ""; /// /// 属性值单位 /// public string value_unit = ""; /// /// 小数点允许最大精度,为0时代表不允许输入小数 /// public int? value_precision = 0; public string max_value = ""; public string min_value = ""; /// /// 是否必填 /// public bool? required = false; /// /// 0-可输入、1-可勾选、3-可输入又可勾选 /// public int? control_type = 0; /// /// 0-文本、1-数值、4-绝对时间、5-相对时间 /// public int? value_type = 0; /// /// 允许的最大的自定义规格数量 /// public int? choose_max_num = 0; /// /// 最大可输入数目,为0时代表不可输入 /// public int? input_max_num = 0; /// /// 父属性id /// public int? parent_id = 0; /// /// 是否销售属性 /// public bool? is_sale = false; public bool? can_note = false; /// /// 销售属性规格id,非销售属性为null /// public long? spec_id = 0; /// /// 0普通,1颜色,2尺码 /// public int? feature = 0; /// /// 是否父属性 /// public bool? is_parent = false; /// /// 引用属性id /// public int? ref_pid = 0; /// /// 是否按条件展示 /// public bool? is_condition_show = false; /// /// 只有show_vids中的值被选择时属性才可使用 /// public List show_vids = new List(); /// /// 属性值列表 /// public List values = new List(); } public class PropertiesValuesBase { /// /// 基础属性值id /// public int? vid = 0; /// /// 属性值 /// public string value = ""; /// /// 扩展信息,颜色的话色号在这里,ARGB,非销售属性为null /// public string extend_info = ""; /// /// 规格id,非销售属性为null /// public long? spec_id = 0; /// /// 是否父属性值 /// public bool? is_parent = false; /// /// 对应的父属性值id /// public List parent_vids = new List(); /// /// 分组信息 /// public PropertiesGroupBase group = new PropertiesGroupBase(); } public class PropertiesGroupBase { public int? id = 0; public string name = ""; } }