feat(wxapi): 新增小程序推广员相关接口

This commit is contained in:
Fu Diwei
2024-06-07 20:55:36 +08:00
parent 9275f1d4a0
commit 08b24c4506
55 changed files with 2028 additions and 3 deletions

View File

@@ -0,0 +1,20 @@
{
"promoter_list": [
{
"openid": "xxxxx",
"role_id": 1,
"retail_id": "xxxxx",
"extra_info": "xxxxx",
"name": "xxxxx",
"phone": "xxxxx"
},
{
"openid": "xxxxx",
"role_id": 1,
"retail_id": "xxxxx",
"extra_info": "xxxxx",
"name": "xxxxx",
"phone": "xxxxx"
}
]
}

View File

@@ -0,0 +1,26 @@
{
"total_cnt": 200,
"fail_cnt": 2,
"fail_list": [
{
"openid": "xxxxx",
"role_id": 1,
"retail_id": "xxxxx",
"extra_info": "xxxxx",
"name": "xxxxx",
"phone": "xxxxx"
},
{
"openid": "xxxxx",
"role_id": 1,
"retail_id": "xxxxx",
"extra_info": "xxxxx",
"name": "xxxxx",
"phone": "xxxxx",
"errcode": 103003,
"errmsg": "data already exists"
}
],
"errcode": 0,
"errmsg": "OK"
}

View File

@@ -0,0 +1,4 @@
{
"name": "xxxxx",
"desc": "xxxxx"
}

View File

@@ -0,0 +1,7 @@
{
"role_id": 2,
"name": "xxxxx",
"desc": "xxxxx",
"errcode": 0,
"errmsg": "ok"
}

View File

@@ -0,0 +1,4 @@
{
"role_id": 1,
"invitation_type": 0
}

View File

@@ -0,0 +1,7 @@
{
"poster": "xxxxx",
"qrcode": "xxxxx",
"tag": "xxxxx",
"errcode": 0,
"errmsg": "OK"
}

View File

@@ -0,0 +1,7 @@
{
"send_date": "2023-08-04",
"dimonsion": 0,
"msg_type": 1,
"begin_send_time": 1691114400,
"end_send_time": 1691128800
}

View File

@@ -0,0 +1,13 @@
{
"data_list": [
{
"msg_type": 1,
"msg_id": "123456",
"send_time": 1691114400,
"click_uv": 123,
"click_pv": 200
}
],
"errcode": 0,
"errmsg": "OK"
}

View File

@@ -0,0 +1,3 @@
{
"msg_id": "123456"
}

View File

@@ -0,0 +1,19 @@
{
"send_cnt": 2,
"fail_cnt": 1,
"fail_info": [
{
"id": "123",
"errcode": 103010
}
],
"fail_info_url": "https://xxxxxxxxxx",
"msg_type": 1,
"content": "{\"title\":\"今日优惠活动\",\"topic\":\"双十一大促\",\"desc\":\"三件五折,两件七折\",\"date\":\"2022/10/28\"}",
"appid": "xxxxx",
"path": "pages/index/xxxxx",
"list_type": 1,
"role_id": [ 1, 2 ],
"errcode": 0,
"errmsg": "OK"
}

View File

@@ -0,0 +1,9 @@
{
"openid": "xxxxx",
"mch_id": "xxxxx",
"trade_no": "xxxxx",
"out_trade_no": "xxxxx",
"status": 1,
"start_id": "123",
"need_unionid": 1
}

View File

@@ -0,0 +1,43 @@
{
"order_list": [
{
"promoter_openid": "xxxxx",
"role_id": 1,
"retail_id": "xxxxx",
"extra_info": "xxxxx",
"openid": "xxxxx",
"create_time": 1668667349,
"path": "pages/xxxxx",
"scene": 1077,
"share_extra_info": "xxxxx",
"mch_id": "xxxxx",
"trade_no": "xxxxx",
"out_trade_no": "xxxxx",
"status": 1,
"paid_amount": 150,
"paid_time": 1668667360
},
{
"promoter_openid": "xxxxx",
"role_id": 1,
"retail_id": "xxxxx",
"extra_info": "xxxxx",
"openid": "xxxxx",
"create_time": 1668667349,
"path": "pages/xxxxx",
"scene": 1077,
"share_extra_info": "xxxxx",
"mch_id": "xxxxx",
"trade_no": "xxxxx",
"out_trade_no": "xxxxx",
"status": 2,
"paid_amount": 150,
"paid_time": 1668667360,
"refunded_time": 1668668000
}
],
"total_cnt": 2,
"start_id": "2",
"errcode": 0,
"errmsg": "OK"
}

View File

@@ -0,0 +1,11 @@
{
"openid": "xxxxx",
"role_id": 1,
"retail_id": "xxxxx",
"begin_time": 1668614400,
"end_time": 1668666429,
"start_id": "123",
"need_unionid": 1,
"auth_status": 1,
"decl_status": 1
}

View File

@@ -0,0 +1,31 @@
{
"promoter_list": [
{
"openid": "xxxxx",
"role_id": 1,
"retail_id": "xxxxx",
"extra_info": "xxxxx",
"auth_status": 1,
"decl_status": 1,
"update_time": 1668667349,
"id": "100",
"name": "xxxxx",
"phone": "xxxxx"
},
{
"openid": "xxxxx",
"role_id": 1,
"retail_id": "xxxxx",
"extra_info": "xxxxx",
"auth_status": 1,
"decl_status": 1,
"update_time": 1668667349,
"id": "123",
"name": "xxxxx",
"phone": "xxxxx"
}
],
"total_cnt": 2,
"errcode": 0,
"errmsg": "OK"
}

View File

@@ -0,0 +1,9 @@
{
"openid": "xxxxx",
"begin_time": 1668614400,
"end_time": 1668666429,
"scene": 1077,
"path": "pages/xxxxx",
"start_id": "123",
"need_unionid": 1
}

View File

@@ -0,0 +1,30 @@
{
"relation_list": [
{
"promoter_openid": "xxxxx",
"role_id": 1,
"retail_id": "xxxxx",
"extra_info": "xxxxx",
"openid": "xxxxx",
"create_time": 1668667349,
"path": "pages/xxxxx",
"scene": 1077,
"share_extra_info": "xxxxx"
},
{
"promoter_openid": "xxxxx",
"role_id": 1,
"retail_id": "xxxxx",
"extra_info": "xxxxx",
"openid": "xxxxx",
"create_time": 1668667349,
"path": "pages/xxxxx",
"scene": 1077,
"share_extra_info": "xxxxx"
}
],
"total_cnt": 2,
"start_id": "2",
"errcode": 0,
"errmsg": "OK"
}

View File

@@ -0,0 +1,17 @@
{
"role_list": [
{
"role_id": 1,
"name": "xxxxx",
"desc": "xxxxx"
},
{
"role_id": 2,
"name": "xxxxx",
"desc": "xxxxx"
}
],
"total_cnt": 2,
"errcode": 0,
"errmsg": "OK"
}

View File

@@ -0,0 +1,8 @@
{
"path": "xxxxx",
"openid": "xxxxx",
"extra_info": "xxxxx",
"title": "xxxxx",
"share_type": 0,
"env_version": "trial"
}

View File

@@ -0,0 +1,7 @@
{
"share_path": "xxxxx",
"qrcode": "xxxxx",
"tag": "xxxxx",
"errcode": 0,
"errmsg": "OK"
}

View File

@@ -0,0 +1,10 @@
{
"msg_type": 1,
"content": "{\"title\":\"今日优惠活动\",\"topic\":\"双十一大促\",\"desc\":\"三件五折,两件七折\",\"date\":\"2022/10/28\"}",
"appid": "xxxxx",
"path": "pages/index/xxxxx",
"list_type": 1,
"role_id": [ 1, 2 ],
"retail_id": [ "xxxxx", "xxxxx" ],
"id": [ "1", "2" ]
}

View File

@@ -0,0 +1,5 @@
{
"msg_id": "123456",
"errcode": 0,
"errmsg": "OK"
}

View File

@@ -0,0 +1,8 @@
{
"msg_type": 1,
"content": "{\"title\":\"今日优惠活动\",\"topic\":\"双十一大促\",\"desc\":\"三件五折,两件七折\",\"date\":\"2022/10/28\"}",
"appid": "xxxxx",
"path": "pages/index/xxxxx",
"id": "1",
"openid": "xxxxxxxxxxxx"
}

View File

@@ -0,0 +1,9 @@
{
"id": "123",
"role_id": 1,
"retail_id": "xxxxx",
"extra_info": "xxxxx",
"decl_status": 2,
"name": "xxxxx",
"phone": "139xxxxxxxx"
}

View File

@@ -0,0 +1,5 @@
{
"role_id": 1,
"name": "xxxxx",
"desc": "xxxxx"
}