feat(wxapi): 新增微信小店小程序会员服务相关接口

This commit is contained in:
Fu Diwei
2025-07-12 11:01:24 +08:00
parent dcde124eb2
commit 827a32ee0b
39 changed files with 726 additions and 417 deletions

View File

@@ -1,11 +0,0 @@
{
"ToUserName": "gh_*",
"FromUserName": "OPENID",
"CreateTime": 1662480000,
"MsgType": "event",
"Event": "channels_ec_vip_grade_info_update",
"user_info": {
"grade": 2,
"experience_value": 100
}
}

View File

@@ -1,11 +0,0 @@
{
"ToUserName": "gh_*",
"FromUserName": "OPENID",
"CreateTime": 1662480000,
"MsgType": "event",
"Event": "channels_ec_vip_join",
"user_info": {
"join_time": 1662480000,
"phone_number": "123456789"
}
}

View File

@@ -1,17 +0,0 @@
{
"ToUserName": "gh_*",
"FromUserName": "OPENID",
"CreateTime": 1662480000,
"MsgType": "event",
"Event": "channels_ec_vip_score_exchange",
"exchange_info": {
"pay_score": 100,
"score_item_type": 1,
"coupon_info": {
"related_coupon_id": 1234
},
"product_info": {
"related_product_id": 1234
}
}
}

View File

@@ -1,12 +0,0 @@
{
"ToUserName": "gh_*",
"FromUserName": "OPENID",
"CreateTime": 1662480000,
"MsgType": "event",
"Event": "channels_ec_vip_score_update",
"user_info": {
"score": 100,
"delta_score": -10,
"flow_type": 3
}
}

View File

@@ -1,16 +0,0 @@
{
"ToUserName": "gh_*",
"FromUserName": "OPENID",
"CreateTime": 1662480000,
"MsgType": "event",
"Event": "channels_ec_vip_task_award",
"task_info": {
"task_id": 123,
"task_name": "任务名称",
"award_info": {
"award_type": 1,
"coupon_id": 1234,
"gain_score": 100
}
}
}

View File

@@ -0,0 +1,13 @@
{
"ToUserName": "gh_*",
"FromUserName": "OPENID",
"CreateTime": 1662480000,
"MsgType": "event",
"Event": "channels_ec_vip_user_auto_add",
"info": {
"shop_appid": "xxxxxxxxx",
"outer_userid": "xxxxxxxx",
"identity": "V1",
"add_time": 1666673734
}
}

View File

@@ -3,8 +3,8 @@
"FromUserName": "OPENID",
"CreateTime": 1662480000,
"MsgType": "event",
"Event": "channels_ec_vip_close",
"user_info": {
"close_time": 1662480000
"Event": "channels_ec_vip_user_info_get",
"info": {
"shop_appid": "shop_appid"
}
}

View File

@@ -0,0 +1,9 @@
{
"errcode": 0,
"errmsg": "ok",
"list": [
{
"shop_appid": "shop_appid"
}
]
}

View File

@@ -0,0 +1,8 @@
{
"session_id": "session_id",
"wxa_openid": "wxa_openid",
"info": {
"identity": "Lv.1",
"outer_userid": "outer_userid"
}
}

View File

@@ -0,0 +1,3 @@
{
"wxa_openid": "wxa_openid"
}

View File

@@ -0,0 +1,9 @@
{
"errcode": 0,
"errmsg": "ok",
"info": {
"identity": "Lv.1",
"outer_userid": "outer_userid",
"related_shop_appid": [ "appid1", "appid2" ]
}
}

View File

@@ -0,0 +1,7 @@
{
"wxa_openid": "wxa_openid",
"info": {
"identity": "Lv.1",
"outer_userid": "outer_userid"
}
}

View File

@@ -0,0 +1,12 @@
{
"errcode": 0,
"errmsg": "ok",
"list": [
{
"wxa_openid": "wxa_openid",
"identity": "Lv.1",
"outer_userid": "outer_userid",
"related_shop_appid": [ "shop_appid1", "shop_appid2" ]
}
]
}

View File

@@ -0,0 +1,19 @@
{
"errcode": 0,
"errmsg": "ok",
"wxa_appid": "wxxxxxxxxxxxxxxxxx",
"info": {
"paths": {
"register_path": "main/register/path",
"rights_path": "main/rights/path"
},
"whitelist_openids": [
"openid_1",
"openid_2"
],
"display_info": {
"order_page_display": 0
}
},
"state": 0
}