feat(wxapi): 新增视频号小店获取商品库存流水接口

This commit is contained in:
Fu Diwei
2024-04-29 21:42:23 +08:00
parent 535b190b66
commit 00df2ad813
16 changed files with 531 additions and 46 deletions

View File

@@ -0,0 +1,42 @@
{
"errcode": 0,
"errmsg": "ok",
"data": {
"spu_stock_list": [
{
"product_id": "10000017524246",
"sku_stock": [
{
"sku_id": "764787449",
"normal_stock_num": 990,
"limited_discount_stock_num": 0,
"warehouse_stocks": [
{
"out_warehouse_id": "test4",
"num": 44,
"lock_stock": 0
},
{
"out_warehouse_id": "test2",
"num": 44,
"lock_stock": 0
},
{
"out_warehouse_id": "test3",
"num": 8,
"lock_stock": 0
},
{
"out_warehouse_id": "test1",
"num": 80,
"lock_stock": 0
}
],
"finder_total_num": 300,
"total_stock_num": 1166
}
]
}
]
}
}

View File

@@ -0,0 +1,8 @@
{
"product_id": "10000032267694",
"sku_id": "1064839936",
"stock_type": 0,
"begin_time": 1689218360,
"end_time": 1689736760,
"page_size": 10
}

View File

@@ -0,0 +1,39 @@
{
"errcode": 0,
"errmsg": "ok",
"data": {
"stock_flow_info_list": [
{
"amount": 300,
"beginning_amount": 842,
"ending_amount": 542,
"stock_sub_type": 1,
"op_type": 6,
"update_time": 1689735682,
"ext_info": {
"move_to_stock_sub_type": 4,
"upload_source": 0,
"order_id": "0",
"out_warehouse_id": "",
"limited_discount_id": "0",
"finder_id": "sphn9rhffKDiLAf"
}
},
{
"amount": 1,
"beginning_amount": 843,
"ending_amount": 842,
"stock_sub_type": 1,
"op_type": 4,
"update_time": 1689520907,
"ext_info": {
"upload_source": 0,
"order_id": "3712984209868589056",
"out_warehouse_id": "",
"limited_discount_id": "0"
}
}
],
"next_key": ""
}
}

View File

@@ -0,0 +1,4 @@
{
"product_id": "10000000088178",
"sku_id": "462966239"
}

View File

@@ -0,0 +1,27 @@
{
"errcode": 0,
"errmsg": "ok",
"data": {
"normal_stock_num": 998,
"limited_discount_stock_num": 0,
"warehouse_stocks": [
{
"out_warehouse_id": "test1",
"num": 10
},
{
"out_warehouse_id": "test2",
"num": 22
},
{
"out_warehouse_id": "test3",
"num": 33
},
{
"out_warehouse_id": "test4",
"num": 44
}
],
"total_stock_num": 1107
}
}