feat(wxapi): 随官方更新视频号商品相关接口模型

This commit is contained in:
Fu Diwei
2024-06-07 14:37:41 +08:00
parent cb2f2ae419
commit 9275f1d4a0
23 changed files with 655 additions and 113 deletions

View File

@@ -21,22 +21,65 @@
"deposit": "500000",
"product_attr_list": [
{
"name": "颜色",
"name": "产地",
"type": "string",
"type_v2": "string",
"value": "",
"is_required": false
},
{
"name": "检测标准",
"type": "select_one",
"value": "3C;美标;欧盟ECE;ADAC;C-NCAP",
"is_required": false
"is_required": false,
"hint": "生产地",
"append_allowed": false
},
{
"name": "材质",
"type": "select_one",
"type_v2": "select_one",
"value": "不锈钢;碳钢;金属;塑料;玻璃;硅胶;其他",
"is_required": true
},
{
"name": "适用人群",
"type": "select_one",
"type_v2": "select_many",
"value": "婴儿;儿童;青年;中年;老年",
"is_required": false,
"hint": "请选择适用的人群",
"append_allowed": false
},
{
"name": "数量",
"type": "string",
"type_v2": "integer",
"value": "",
"is_required": true,
"hint": "请设置数量",
"append_allowed": false
},
{
"name": "精度",
"type": "string",
"type_v2": "decimal4",
"value": "",
"is_required": true,
"hint": "请设置精度,支持小数点后 4 位",
"append_allowed": false
},
{
"name": "重量",
"type": "string",
"type_v2": "integer_unit",
"value": "mg;g;kg",
"is_required": false,
"hint": "请设置产品重量",
"append_allowed": false
},
{
"name": "毛重",
"type": "string",
"type_v2": "decimal4_unit",
"value": "mg;g;kg",
"is_required": false,
"hint": "请设置产品毛重",
"append_allowed": false
}
],
"transactionfee_info": {

View File

@@ -86,5 +86,31 @@
"https://mmecimage.cn/p/wx37f38d59298839c3/HJE9eJaEc5bJk-eaArVdILSB7MMaHgdK2-JIn71nCC"
]
}
]
],
"size_chart": {
"enable": true,
"specification_list": [
{
"name": "",
"unit": "",
"is_range": false,
"value_list": [
{
"key": "1",
"value": "S",
"left": "",
"right": ""
},
{
"key": "2",
"value": "M"
},
{
"key": "3",
"value": "L"
}
]
}
]
}
}

View File

@@ -27,17 +27,36 @@
],
"attrs": [
{
"attr_key": "商品毛重",
"attr_value": "380g"
"attr_key": "产地",
"attr_value": "四川成都"
},
{
"attr_key": "商品产地",
"attr_value": "中国大陆"
"attr_key": "材质",
"attr_value": "玻璃"
},
{
"attr_key": "适用人群",
"attr_value": "青年;中年"
},
{
"attr_key": "数量",
"attr_value": "33"
},
{
"attr_key": "精度",
"attr_value": "3.001"
},
{
"attr_key": "重量",
"attr_value": "38 mg"
},
{
"attr_key": "毛重",
"attr_value": "380 kg"
}
],
"express_info": {
"template_id": "123456",
"weight": 100
"template_id": "123456"
},
"status": 5,
"edit_status": 2,
@@ -47,33 +66,43 @@
"out_sku_id": "OUT_SKU_ID_TEST",
"thumb_img": "",
"sale_price": 1,
"market_price": 2,
"stock_num": 5,
"sku_code": "SKU_CODE_TEST",
"sku_attrs": [],
"status": 0,
"sku_deliver_info": {
"stock_type": 1,
"full_payment_presale_delivery_type": 2,
"presale_begin_time": 1700450698,
"presale_end_time": 1700882698,
"full_payment_presale_delivery_time": 3
}
"sku_attrs": [
{
"attr_key": "产地",
"attr_value": "四川成都"
},
{
"attr_key": "材质",
"attr_value": "玻璃"
},
{
"attr_key": "适用人群",
"attr_value": "青年;中年"
},
{
"attr_key": "数量",
"attr_value": "33"
},
{
"attr_key": "精度",
"attr_value": "3.001"
},
{
"attr_key": "重量",
"attr_value": "38 mg"
},
{
"attr_key": "毛重",
"attr_value": "380 kg"
}
],
"status": 0
}
],
"min_price": 1,
"product_type": 1,
"spu_code": "AABBCC",
"brand_id": 2100000000,
"extra_service": {
"seven_day_return": 1,
"pay_after_use": 1,
"freight_insurance": 0
},
"edit_time": 1700450698,
"after_sale_info": {
"after_sale_address_id": 123345
},
"spu_code": "SPU_CODE_TEST",
"product_qua_infos": [
{
"qua_id": 1111484,

View File

@@ -8,7 +8,8 @@
"desc_info": {
"imgs": [
"https://mmecimage.cn/p/wx37f38d59298839c3/HJE9eJaEc5bJk-eaArVdILSB7MMaHgdK2-JIn51nMQ"
]
],
"desc": "物美价廉"
},
"cats": [
{
@@ -23,94 +24,158 @@
],
"attrs": [
{
"attr_key": "商品毛重",
"attr_value": "380g"
"attr_key": "产地",
"attr_value": "四川成都"
},
{
"attr_key": "商品产地",
"attr_value": "中国大陆"
"attr_key": "材质",
"attr_value": "玻璃"
},
{
"attr_key": "适用人群",
"attr_value": "青年;中年"
},
{
"attr_key": "数量",
"attr_value": "33"
},
{
"attr_key": "精度",
"attr_value": "3.001"
},
{
"attr_key": "重量",
"attr_value": "38 mg"
},
{
"attr_key": "毛重",
"attr_value": "380 kg"
}
],
"express_info": {
"template_id": "47428464001",
"weight": 100
"template_id": "47428464001"
},
"skus": [
{
"sku_id": "462966903",
"thumb_img": "https://mmecimage.cn/p/wx37f38d59298839c3/HJE9eJaEc5bJk-eaArVdILSB7MMaHgdK2-JIn51nMQ",
"sale_price": 1300,
"market_price": 1500,
"stock_num": 100,
"sku_code": "A24525252",
"sku_attrs": [
{
"attr_key": "选择颜色",
"attr_value": "红蓝主机"
"attr_key": "产地",
"attr_value": "四川成都"
},
{
"attr_key": "选择套装",
"attr_value": "主机+保护套"
"attr_key": "材质",
"attr_value": "玻璃"
},
{
"attr_key": "适用人群",
"attr_value": "青年;中年"
},
{
"attr_key": "数量",
"attr_value": "33"
},
{
"attr_key": "精度",
"attr_value": "3.001"
},
{
"attr_key": "重量",
"attr_value": "38 mg"
},
{
"attr_key": "毛重",
"attr_value": "380 kg"
}
],
"sku_deliver_info": {
"stock_type": 1,
"full_payment_presale_delivery_type": 2,
"presale_begin_time": 1700450698,
"presale_end_time": 1700882698,
"full_payment_presale_delivery_time": 3
"stock_type": 0
}
},
{
"thumb_img": "https://mmecimage.cn/p/wx37f38d59298839c3/HJE9eJaEc5bJk-eaArVdILSB7MMaHgdK2-JIn51nMQ",
"sale_price": 1000,
"market_price": 1200,
"stock_num": 100,
"sku_code": "A24525252",
"sku_attrs": [
{
"attr_key": "选择颜色",
"attr_value": "红蓝主机"
"attr_key": "产地",
"attr_value": "四川成都"
},
{
"attr_key": "选择套装",
"attr_value": "标配"
"attr_key": "材质",
"attr_value": "玻璃"
},
{
"attr_key": "适用人群",
"attr_value": "青年;中年"
},
{
"attr_key": "数量",
"attr_value": "33"
},
{
"attr_key": "精度",
"attr_value": "3.001"
},
{
"attr_key": "重量",
"attr_value": "38 mg"
},
{
"attr_key": "毛重",
"attr_value": "380 kg"
}
],
"sku_deliver_info": {
"stock_type": 1,
"full_payment_presale_delivery_type": 2,
"presale_begin_time": 1700450698,
"presale_end_time": 1700882698,
"full_payment_presale_delivery_time": 3
"stock_type": 0
}
}
],
"spu_code": "AABBCC",
"brand_id": 2100000000,
"extra_service": {
"seven_day_return": 1,
"pay_after_use": 1,
"freight_insurance": 0
},
"listing": true,
"after_sale_info": {
"after_sale_address_id": 123345
},
"product_qua_infos": [
{
"qua_id": 1111488,
"qua_id": "1111488",
"qua_url": [
"https://mmecimage.cn/p/wx37f38d59298839c3/HJE9eJaEc5bJk-eaArVdILSB7MMaHgdK2-JIn51nMQ",
"https://mmecimage.cn/p/wx37f38d59298839c3/HJE9eJaEc5bJk-eaArVdILSB7MMaHgdK2-JIn71nCC"
]
},
{
"qua_id": 1111489,
"qua_id": "1111489",
"qua_url": [
"https://mmecimage.cn/p/wx37f38d59298839c3/HJE9eJaEc5bJk-eaArVdILSB7MMaHgdK2-JIn51nMQ",
"https://mmecimage.cn/p/wx37f38d59298839c3/HJE9eJaEc5bJk-eaArVdILSB7MMaHgdK2-JIn71nCC"
]
}
]
],
"size_chart": {
"enable": true,
"specification_list": [
{
"name": "",
"unit": "",
"is_range": false,
"value_list": [
{
"key": "1",
"value": "S",
"left": "",
"right": ""
},
{
"key": "2",
"value": "M"
},
{
"key": "3",
"value": "L"
}
]
}
]
}
}