feat(wxapi): 新增微信小店推客带货相关接口

This commit is contained in:
Fu Diwei
2025-06-07 22:47:25 +08:00
parent 29dc515571
commit dfc1d4e470
218 changed files with 5399 additions and 130 deletions

View File

@@ -0,0 +1,34 @@
{
"errcode": 0,
"errmsg": "ok",
"commssion_clue": {
"order_id": "123",
"sku_id": "12345",
"create_time": 1675855175,
"update_time": 1675855217,
"status": 20,
"clue_detail": {
"shop_info": {
"appid": "wxxxx"
},
"product_info": {
"product_id": "12345",
"thumb_img": "https://test.com/0",
"title": "test_123",
"actual_payment": 100
},
"order_info": {
"status": 20
},
"sharer_info": {
"sharer_appid": "",
"nickname": "",
"opensharerid": ""
},
"buyer_info": {
"open_id": "",
"union_id": ""
}
}
}
}

View File

@@ -0,0 +1,7 @@
{
"page_size": 1,
"create_time_range": {
"start_time": 1676375581,
"end_time": 1676375754
}
}

View File

@@ -0,0 +1,11 @@
{
"errcode": 0,
"errmsg": "ok",
"list": [
{
"order_id": "123",
"sku_id": "1234"
}
],
"has_more": true
}

View File

@@ -0,0 +1,5 @@
{
"errcode": "0",
"errmsg": "ok",
"qrcode_url": "https://mp.weixin.qq.com/"
}

View File

@@ -0,0 +1,8 @@
{
"next_key": "",
"page_size": 10,
"sharer_appid": "",
"shop_appid": "",
"promoter_id": "",
"promoter_type": 4
}

View File

@@ -0,0 +1,27 @@
{
"errcode": 0,
"errmsg": "ok",
"next_key": "",
"has_more": false,
"article_list": [
{
"product_list": [
{
"product_id": 123,
"product_name": "name",
"product_img_url": "imag_url",
"predict_commission_amount": 123,
"commission_rate": 400000
}
],
"article_info": {
"article_title": "title",
"cover_image": "image",
"article_url": "url",
"promoter_share_link": "promoter_share_link"
},
"create_time": 1736864136,
"update_time": 1736864136
}
]
}

View File

@@ -0,0 +1,6 @@
{
"next_key": "",
"talent_appid": "123123",
"biz_appid": "wx7f48eaxxx",
"page_size": 10
}

View File

@@ -0,0 +1,27 @@
{
"errcode": 0,
"errmsg": "ok",
"next_key": "",
"has_more": false,
"article_list": [
{
"product_info_list": [
{
"product_id": 123,
"product_name": "name",
"product_img_url": "imag_url",
"predict_commission_amount": 123,
"product_mini_price": 590
}
],
"article_info": {
"article_title": "title",
"cover_image": "image",
"article_url": "url",
"promoter_share_link": "promoter_share_link"
},
"create_time": 1736864136,
"update_time": 1736864136
}
]
}

View File

@@ -0,0 +1,5 @@
{
"shop_appid": "需要过滤的店铺appid",
"next_key": "NEXT_KEY",
"page_size": 20
}

View File

@@ -0,0 +1,11 @@
{
"errcode": "0",
"errmsg": "ok",
"next_key": "NEW_NEXT_KEY",
"coupons": [
{
"coupon_id": "1111111"
}
],
"has_more": true
}

View File

@@ -0,0 +1,34 @@
{
"errcode": "0",
"errmsg": "ok",
"coupon": {
"coupon_id": "111111111",
"type": 103,
"status": 5,
"create_time": 1594885385,
"update_time": 1594886327,
"coupon_info": {
"name": "scs",
"discount_info": {
"discount_num": 9900
},
"receive_info": {
"end_time": 1673110742,
"limit_num_one_person": 1,
"start_time": 1673110742,
"total_num": 100
},
"valid_info": {
"valid_type": 1,
"valid_day_num": 0,
"start_time": 1594828800,
"end_time": 1595433600
}
},
"stock_info": {
"issued_num": 95,
"receive_num": 3,
"used_num": 2
}
}
}

View File

@@ -0,0 +1,5 @@
{
"coupon_id": "1111111",
"sharer_openid": "推客的当前小程序openid",
"sharer_appid": "推客的appid"
}

View File

@@ -0,0 +1,5 @@
{
"errcode": "0",
"errmsg": "ok",
"qr_code": "QRCODEURL"
}

View File

@@ -0,0 +1,5 @@
{
"coupon_id": "1111111",
"sharer_openid": "推客的当前小程序openid",
"sharer_appid": "推客的appid"
}

View File

@@ -0,0 +1,5 @@
{
"errcode": "0",
"errmsg": "ok",
"short_link": "SHORTLINK"
}

View File

@@ -0,0 +1,5 @@
{
"shop_appid": "需要过滤的店铺appid",
"next_key": "NEXT_KEY",
"page_size": 20
}

View File

@@ -0,0 +1,11 @@
{
"errcode": "0",
"errmsg": "ok",
"next_key": "NEW_NEXT_KEY",
"coupons": [
{
"coupon_id": "1111111"
}
],
"has_more": true
}

View File

@@ -0,0 +1,6 @@
{
"next_key": "",
"page_size": 10,
"talent_appid": "",
"finder_exportusername": "export/UzFfAgtgek..."
}

View File

@@ -0,0 +1,19 @@
{
"errcode": "0",
"errmsg": "ok",
"has_more": false,
"next_key": "",
"feed_list": [
{
"export_id": "",
"predict_commission_amount": 123,
"talent_appid": "123",
"product_info": {
"product_id": 1,
"product_name": "",
"product_img_url": "",
"product_mini_price": 0
}
}
]
}

View File

@@ -0,0 +1,9 @@
{
"feed_list": [
{
"export_id": ""
}
],
"mini_program_appid": "123",
"talent_appid": "123"
}

View File

@@ -0,0 +1,11 @@
{
"errcode": "0",
"errmsg": "ok",
"feed_list": [
{
"export_id": "",
"feed_token": "",
"promoter_share_link": ""
}
]
}

View File

@@ -0,0 +1,7 @@
{
"next_key": "next_key",
"page_size": 1,
"shop_appid": "",
"promoter_id": "",
"promoter_type": 1
}

View File

@@ -0,0 +1,18 @@
{
"errcode": "0",
"errmsg": "ok",
"has_more": false,
"next_key": "",
"feed_list": [
{
"export_id": "",
"predict_commission_amount": 123,
"product_info": {
"product_id": 1,
"product_name": "",
"product_img_url": "",
"product_mini_price": 0
}
}
]
}

View File

@@ -0,0 +1,11 @@
{
"feed_list": [
{
"export_id": ""
}
],
"mini_program_appid": "123",
"shop_appid": "",
"promoter_id": "",
"promoter_type": 1
}

View File

@@ -0,0 +1,11 @@
{
"errcode": "0",
"errmsg": "ok",
"feed_list": [
{
"export_id": "",
"feed_token": "",
"promoter_share_link": ""
}
]
}

View File

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

View File

@@ -0,0 +1,15 @@
{
"errcode": "0",
"errmsg": "ok",
"has_more": true,
"next_key": "",
"product_list": [
{
"product_id": 123,
"product_name": "product_name",
"product_img_url": "product_img_url",
"product_price": 123,
"predict_commission_amount": 123
}
]
}

View File

@@ -0,0 +1,11 @@
{
"errcode": "0",
"errmsg": "ok",
"live_notice_record_list": [
{
"notice_id": "export_id",
"description": "description",
"start_time": 123123
}
]
}

View File

@@ -0,0 +1,5 @@
{
"talent_appid": "",
"sharer_appid": "",
"notice_id": ""
}

View File

@@ -0,0 +1,5 @@
{
"errcode": "0",
"errmsg": "ok",
"qrcode_url": ""
}

View File

@@ -0,0 +1,4 @@
{
"talent_appid": "",
"mini_program_appid": ""
}

View File

@@ -0,0 +1,11 @@
{
"errcode": "0",
"errmsg": "ok",
"live_record_list": [
{
"export_id": "export_id",
"description": "description",
"promoter_share_link": "trace_id"
}
]
}

View File

@@ -0,0 +1,5 @@
{
"talent_appid": "",
"sharer_appid": "",
"export_id": ""
}

View File

@@ -0,0 +1,5 @@
{
"errcode": "0",
"errmsg": "ok",
"qrcode_url": ""
}

View File

@@ -0,0 +1,7 @@
{
"next_key": "",
"page_size": 10,
"shop_appid": "",
"promoter_id": "",
"promoter_type": 1
}

View File

@@ -0,0 +1,16 @@
{
"errcode": "0",
"errmsg": "ok",
"has_more": true,
"next_key": "",
"product_list": [
{
"product_id": 123,
"product_name": "product_name",
"product_img_url": "product_img_url",
"product_price": 123,
"predict_commission_amount": 123,
"commission_rate": 1000000
}
]
}

View File

@@ -0,0 +1,7 @@
{
"shop_appid": "",
"promoter_id": "",
"promoter_type": 1,
"notice_id": "",
"sharer_appid": ""
}

View File

@@ -0,0 +1,6 @@
{
"shop_appid": "",
"promoter_id": "",
"promoter_type": 1,
"mini_program_appid": ""
}

View File

@@ -0,0 +1,11 @@
{
"errcode": "0",
"errmsg": "ok",
"live_record_list": [
{
"export_id": "export_id",
"description": "description",
"promoter_share_link": "trace_id"
}
]
}

View File

@@ -0,0 +1,7 @@
{
"shop_appid": "",
"promoter_id": "",
"promoter_type": 1,
"export_id": "",
"sharer_appid": ""
}

View File

@@ -0,0 +1,5 @@
{
"errcode": "0",
"errmsg": "ok",
"qrcode_url": ""
}

View File

@@ -0,0 +1,5 @@
{
"sharer_appid": "appid",
"product_id": 10,
"shop_appid": "appid"
}

View File

@@ -0,0 +1,5 @@
{
"errcode": "0",
"errmsg": "ok",
"short_link": "short_link"
}

View File

@@ -0,0 +1,5 @@
{
"sharer_appid": "appid",
"product_id": 10,
"shop_appid": "appid"
}

View File

@@ -0,0 +1,5 @@
{
"errcode": "0",
"errmsg": "ok",
"qrcode_url": "url"
}

View File

@@ -0,0 +1,6 @@
{
"shop_appid": "SHOPAPPID",
"product_id": 1,
"plan_type": 1,
"get_available_coupon": false
}

View File

@@ -0,0 +1,47 @@
{
"errcode": "0",
"errmsg": "ok",
"product": {
"shop_appid": "test",
"product_id": 12345,
"product_promotion_link": "",
"product_info": {
"title": "test_title",
"sub_title": "",
"head_imgs": [
"https://test.com/0"
],
"desc_info": {
"imgs": [
"https://test.com/0"
],
"desc": ""
},
"cats_v2": [
{
"cat_id": "1421"
}
],
"skus": [
{
"sku_id": "670813472",
"thumb_img": "",
"sale_price": 500,
"stock_num": 998,
"sku_attrs": [
{
"attr_key": "产地",
"attr_value": "四川成都"
}
]
}
]
},
"commission_info": {
"status": 1,
"service_ratio": 1,
"start_time": 1,
"end_time": 1
}
}
}

View File

@@ -0,0 +1,17 @@
{
"next_key": "",
"page_size": 10,
"plan_type": 1,
"category": {
"category_id": "8261345894708739273",
"category_ids_1": [ "1142", "1421", "1453", "1208", "6153", "6472", "1069", "1247" ],
"category_name": "家清日用"
},
"keyword": "纸巾",
"spu_item_condition": {
"commission_rate_range": {
"max": "100000",
"min": "0"
}
}
}

View File

@@ -0,0 +1,11 @@
{
"errcode": "0",
"errmsg": "ok",
"product_list": [
{
"product_id": 1,
"shop_appid": "SHOPAPPID"
}
],
"next_key": "PAGECONTEXT"
}

View File

@@ -0,0 +1,5 @@
{
"sharer_appid": "appid",
"product_id": 10,
"shop_appid": "appid"
}

View File

@@ -0,0 +1,5 @@
{
"errcode": "0",
"errmsg": "ok",
"product_promotion_link": "link"
}

View File

@@ -0,0 +1,6 @@
{
"errcode": "0",
"errmsg": "ok",
"is_set": true,
"commission_ratio": 10
}

View File

@@ -0,0 +1,5 @@
{
"sharer_appid": "",
"product_id": 1,
"commission_ratio": 10
}

View File

@@ -0,0 +1,6 @@
{
"next_key": "",
"page_size": 10,
"sharer_appid": "",
"sharer_openid": ""
}

View File

@@ -0,0 +1,15 @@
{
"errcode": "0",
"errmsg": "ok",
"sharer_info_list": [
{
"sharer_appid": "推客的 appid 内容",
"bind_time": 1624082155,
"commission_ratio": 10000,
"commission_type": 1,
"nickname": "",
"head_img_url": ""
}
],
"next_key": ""
}

View File

@@ -0,0 +1,14 @@
{
"errcode": "0",
"errmsg": "ok",
"has_more": false,
"next_key": "",
"shop_list": [
{
"shop_appid": "",
"bind_time": 123,
"shop_nickname": "",
"shop_head_img": ""
}
]
}

View File

@@ -0,0 +1,5 @@
{
"shop_appid": "",
"next_key": "next_key",
"page_size": 1
}

View File

@@ -0,0 +1,14 @@
{
"errcode": "0",
"errmsg": "ok",
"has_more": false,
"next_key": "",
"promoter_list": [
{
"promoter_id": "123",
"avatar_image_url": "",
"promoter_type": 1,
"promoter_name": ""
}
]
}

View File

@@ -0,0 +1,5 @@
{
"next_key": "next_key",
"page_size": 1,
"talent_appid": ""
}

View File

@@ -0,0 +1,16 @@
{
"errcode": "0",
"errmsg": "ok",
"has_more": false,
"next_key": "",
"talent_list": [
{
"talent_appid": "",
"bind_time": 123,
"talent_nickname": "",
"talent_head_img": "",
"related_finder_exportname_list": [ "export/UzFfAgtgek..." ],
"related_mp_biz_appid_list": [ "wx7f48eaxxx", "wx8e36dexxx" ]
}
]
}

View File

@@ -0,0 +1,4 @@
{
"sharer_openid": "openid",
"is_simple_register": true
}

View File

@@ -0,0 +1,10 @@
{
"errcode": "0",
"errmsg": "ok",
"bind_status": 0,
"register_status": 1,
"register_business_type": "",
"register_query_string": "",
"bind_business_type": "",
"bind_query_string": ""
}

View File

@@ -0,0 +1,5 @@
{
"sharer_appid": "",
"commission_type": 1,
"commission_ratio": 10
}