feat(wxapi): 新增视频号小店商品操作相关接口

This commit is contained in:
Fu Diwei
2022-11-03 10:30:40 +08:00
parent 5c899a2fcb
commit 8c970b5076
38 changed files with 1536 additions and 5 deletions

View File

@@ -0,0 +1,12 @@
{
"ToUserName": "gh_*",
"FromUserName": "OPENID",
"CreateTime": 1662480000,
"MsgType": "event",
"Event": "product_spu_audit",
"ProductSpuAudit": {
"product_id": "12345678",
"status": 3,
"reason": "abc"
}
}

View File

@@ -0,0 +1,12 @@
{
"ToUserName": "gh_*",
"FromUserName": "OPENID",
"CreateTime": 1662480000,
"MsgType": "event",
"Event": "product_spu_listing",
"ProductSpuListing": {
"product_id": "12345678",
"status": 3,
"reason": "abc"
}
}

View File

@@ -0,0 +1,55 @@
{
"title": "任天堂 Nintendo Switch 国行续航增强版 NS家用体感游戏机掌机 便携掌上游戏机 红蓝主机",
"sub_title": "随时随地,一起趣玩。",
"head_imgs": [
"https://mmecimage.cn/p/wx37f38d59298839c3/HJE9eJaEc5bJk-eaArVdILSB7MMaHgdK2-JIn51nMQ"
],
"desc_info": {
"imgs": [
"https://mmecimage.cn/p/wx37f38d59298839c3/HJE9eJaEc5bJk-eaArVdILSB7MMaHgdK2-JIn51nMQ"
]
},
"cats": [
{
"cat_id": "6033"
},
{
"cat_id": "6057"
},
{
"cat_id": "6091"
}
],
"attrs": [
{
"attr_key": "商品毛重",
"attr_value": "380g"
},
{
"attr_key": "商品产地",
"attr_value": "中国大陆"
}
],
"express_info": {
"template_id": "47428464001"
},
"skus": [
{
"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": "主机+保护套"
}
]
}
]
}

View File

@@ -0,0 +1,8 @@
{
"errcode": 0,
"errmsg": "ok",
"data": {
"product_id": 23423523452345235,
"create_time": "2020-03-25 12:05:25"
}
}

View File

@@ -0,0 +1,5 @@
{
"product_id": "324545",
"data_type": 1
}

View File

@@ -0,0 +1,58 @@
{
"errcode": 0,
"errmsg": "ok",
"product": {
"product_id": "123456789",
"out_product_id": "OUT_PRODUCT_ID_TEST",
"title": "任天堂 Nintendo Switch 国行续航增强版",
"sub_title": "【国行Switch更安心的保修服务更快的国行服务器】一台主机三种模式游戏掌机随时随地一起趣玩",
"head_imgs": [
"https://mmecimage.cn/p/wx37f38d59298839c3/HJE9eJaEc5bJk-eaArVdILSB7MMaHgdK2-JIn51nMQ"
],
"desc_info": {
"imgs": [
"https://mmecimage.cn/p/wx37f38d59298839c3/HJE9eJaEc5bJk-eaArVdILSB7MMaHgdK2-JIn51nMQ"
]
},
"cats": [
{
"cat_id": "1"
},
{
"cat_id": "2"
},
{
"cat_id": "3"
}
],
"attrs": [
{
"attr_key": "商品毛重",
"attr_value": "380g"
},
{
"attr_key": "商品产地",
"attr_value": "中国大陆"
}
],
"express_info": {
"template_id": "123456"
},
"status": 5,
"edit_status": 2,
"skus": [
{
"sku_id": "123456001",
"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
}
],
"min_price": 1
}
}

View File

@@ -0,0 +1,5 @@
{
"status": 5,
"page_size": 10,
"next_key": "THE_NEXT_KEY"
}

View File

@@ -0,0 +1,18 @@
{
"errcode": 0,
"errmsg": "ok",
"product_ids": [
"1234567001",
"1234567002",
"1234567003",
"1234567004",
"1234567005",
"1234567006",
"1234567007",
"1234567008",
"1234567009",
"1234567010"
],
"next_key": "THE_NEXT_KEY_NEW",
"total_num": 100
}

View File

@@ -0,0 +1,6 @@
{
"product_id": "324545",
"sku_id": "9328425",
"diff_type": 1,
"num": 10
}

View File

@@ -0,0 +1,74 @@
{
"product_id": "10000000089215",
"title": "任天堂 Nintendo Switch 国行续航增强版 NS家用体感游戏机掌机 便携掌上游戏机 红蓝主机",
"sub_title": "随时随地,一起趣玩。【更新】",
"head_imgs": [
"https://mmecimage.cn/p/wx37f38d59298839c3/HJE9eJaEc5bJk-eaArVdILSB7MMaHgdK2-JIn51nMQ"
],
"desc_info": {
"imgs": [
"https://mmecimage.cn/p/wx37f38d59298839c3/HJE9eJaEc5bJk-eaArVdILSB7MMaHgdK2-JIn51nMQ"
]
},
"cats": [
{
"cat_id": "6033"
},
{
"cat_id": "6057"
},
{
"cat_id": "6091"
}
],
"attrs": [
{
"attr_key": "商品毛重",
"attr_value": "380g"
},
{
"attr_key": "商品产地",
"attr_value": "中国大陆"
}
],
"express_info": {
"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": "主机+保护套"
}
]
},
{
"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": "标配"
}
]
}
]
}

View File

@@ -0,0 +1,8 @@
{
"errcode": 0,
"errmsg": "ok",
"data": {
"product_id": "23423523452345235",
"update_time": "2020-06-20 10:00:00"
}
}