feat(wxapi): 新增微信小店合作商家为小程序发放礼物相关接口

This commit is contained in:
Fu Diwei
2026-02-05 17:53:56 +08:00
parent 1a9793ffc3
commit 71cfa74c3d
30 changed files with 1019 additions and 2 deletions

View File

@@ -0,0 +1,4 @@
{
"shop_appid": "wxxxxxxxxxxxxxxxxx",
"activity_id": "111"
}

View File

@@ -0,0 +1,32 @@
{
"errcode": 0,
"errmsg": "ok",
"activity": {
"activity_id": "111",
"info": {
"basic_info": {
"activity_start_time": "1745856000",
"activity_end_time": "1746028800",
"shop_info": {
"nickname": "小店昵称",
"appid": "wxxxxxxxxxxxxxxxxx"
}
},
"prize_info": {
"product_info_list": [
{
"product_id": "111111111111111",
"sku_id": "2222222222",
"product_img_url": "https://res.wx.qq.com/op_res/1UTAKQSOJopJ5uMwT8EKEWPgJ1RjiMm8XC93FVwJ6GZlPmfXBjqkwVz8QvO985FR-IWAdYj1sMsaVYdl4jEwUA",
"product_name": "商品名称",
"sku_name": "商品sku名称",
"price": "10",
"stock_num": "10",
"can_use_stock_num": "10"
}
]
}
},
"status": 1
}
}

View File

@@ -0,0 +1,17 @@
{
"errcode": 0,
"errmsg": "ok",
"list": [
{
"shop_appid": "wxxxxxxxxxxxxxxxxx",
"shop_nickname": "小店昵称",
"activity_id": "111"
},
{
"shop_appid": "wxxxxxxxxxxxxxxxxx",
"shop_nickname": "小店昵称",
"activity_id": "222"
}
],
"total_num": 2
}

View File

@@ -0,0 +1,3 @@
{
"present_order_id": "4232433395290081234"
}

View File

@@ -0,0 +1,30 @@
{
"errcode": 0,
"errmsg": "ok",
"present": {
"present_order_id": "4232433395290081234",
"create_time": 1763713709,
"present_detail": {
"price_info": {
"order_price": 100
},
"pay_info": {
"pay_time": 1763715605
},
"wishmessage": "大家一起来抽奖"
},
"sub_order_list": [
{
"order_id": "3732433407897635321",
"openid": "oDiTs6_jRMfM4lualWTODbwt42kB",
"status": 30
},
{
"order_id": "3732433407896586753",
"status": 12
}
],
"is_b2c_free_present": false,
"activity_id": "3002981"
}
}

View File

@@ -0,0 +1,9 @@
{
"shop_appid": "wx21b9c6e52edfe3a1",
"create_time_range": {
"start_time": 1749007175,
"end_time": 1749008175
},
"page_size": 10,
"next_key": "CPestckGEPeVxckGGAAgACgAMAA4gKbYu/HiyeYzQJ7JuskA"
}

View File

@@ -0,0 +1,10 @@
{
"errcode": 0,
"errmsg": "ok",
"present_order_list": [
{
"present_order_id": "4226341196275651234"
}
],
"next_key": "CPestckGEPeVxckGGAAgACgAMAA4gKbYu/HiyeYzQJ7JuskA"
}

View File

@@ -0,0 +1,9 @@
{
"present_order_id": "4232433395290081234",
"sub_order_list": [
{
"order_id": "3732433407897635328",
"openid": "omT_t0BEynCijuylUpZCaAAZp0a6"
}
]
}

View File

@@ -0,0 +1,9 @@
{
"shop_appid": "wx0d4f5ddad96dd5ea",
"page_size": 10,
"openid": "okYsb0XK3sTtyW1xteeL7LZmQM7B",
"create_time_range": {
"start_time": 1764518400,
"end_time": 1764604800
}
}

View File

@@ -0,0 +1,11 @@
{
"order_list": [
{
"present_order_id": "4232682644641942011",
"order_id": "3732682646291354361"
}
],
"errcode": 0,
"errmsg": "ok",
"next_key": "CPestckGEPeVxckGGAAgACgAMAA4gKbYu/HiyeYzQJ7JuskA"
}