feat(wxapi): 新增视频号本地生活相关接口

This commit is contained in:
Fu Diwei
2024-07-15 18:59:23 +08:00
parent 6c33157d31
commit acd0b44f08
71 changed files with 2618 additions and 38 deletions

View File

@@ -0,0 +1,6 @@
{
"product_id": "123456",
"bill_date": "2023-12-03",
"page_size": 3,
"page_ctx": ""
}

View File

@@ -0,0 +1,23 @@
{
"errcode": 0,
"errmsg": "成功",
"bill_list": [
{
"voucher_name": "90抵100代金券",
"product_id": "123456",
"code": "123456789",
"order_id": "027828012830384172",
"openid": "asdjeine835k9fjeld93mf",
"voucher_buy_time": 1702016538,
"voucher_buy_amount": 9000,
"voucher_pay_amount": 8500,
"mch_favor_amount": 500,
"platform_favor_amount": 0,
"consume_time": 1702189338,
"consume_store_name": "开心小店",
"mch_settle_amount": 8300,
"finder_settle_amount": 0
}
],
"page_ctx": "dsfajasdlf3434"
}

View File

@@ -0,0 +1,8 @@
{
"consume_request_no": "233244dfgfdfgsdfgsdf",
"encrypted_codes": [ "243234dsfsdf", "24334dfgd", "345453dsf" ],
"codes": [ "232323", "23232323", "32434454545" ],
"sku_id": "12345",
"consume_store_name": "xxx旗舰店",
"consume_channel": 2
}

View File

@@ -0,0 +1,35 @@
{
"errcode": 0,
"errmsg": "成功",
"voucher_list": [
{
"code": "232323",
"status": 2,
"send_time": 1699856182,
"update_time": 1699856182,
"start_time": 1699856182,
"end_time": 1699856182,
"consume_time": 1699856182,
"refund_time": 1699856182,
"product_id": "12345",
"consume_store_name": "xxx旗舰店",
"voucher_type": 1,
"voucher_buy_amount": 0,
"voucher_actual_amount": 0,
"telphone_no": "fasdf343df34545",
"openid": "xsdfs4534543534534",
"code_type": 1,
"order_id": "23434sdfsdf34342",
"sku_id": "12345"
}
],
"fail_voucher_list": [
{
"encrypted_code": "csbm9",
"code": "sqfvm",
"sku_id": 12345,
"ret_code": 0,
"ret_msg": ""
}
]
}

View File

@@ -0,0 +1,6 @@
{
"openid": "xsdfs4534543534534",
"status": 1,
"page_size": 3,
"page_ctx": ""
}

View File

@@ -0,0 +1,28 @@
{
"errcode": 0,
"errmsg": "成功",
"openid": "xsdfs4534543534534",
"voucher_list": [
{
"code": "232323",
"status": 1,
"send_time": 1699856182,
"update_time": 1699856182,
"start_time": 1699856182,
"end_time": 1699856182,
"consume_time": 1699856182,
"refund_time": 1699856182,
"product_id": "12345",
"consume_store_name": "xxx旗舰店",
"voucher_type": 1,
"voucher_buy_amount": 0,
"voucher_actual_amount": 0,
"telphone_no": "fasdf343df34545",
"openid": "xsdfs4534543534534",
"code_type": 1,
"order_id": "23434sdfsdf34342",
"sku_id": "12345"
}
],
"page_ctx": "dsfajasdlf3434"
}

View File

@@ -0,0 +1,5 @@
{
"encrypted_code": "csbm9",
"code": "sqfvm",
"sku_id": 12345
}

View File

@@ -0,0 +1,25 @@
{
"errcode": 0,
"errmsg": "成功",
"voucher": {
"code": "sqfvm",
"status": 1,
"send_time": 1699856182,
"update_time": 1699856182,
"start_time": 1699856182,
"end_time": 1699856182,
"consume_time": 1699856182,
"refund_time": 1699856182,
"product_id": "12345",
"consume_store_name": "xxx旗舰店",
"voucher_type": 1,
"voucher_buy_amount": 0,
"voucher_actual_amount": 0,
"telphone_no": "fasdf343df34545",
"openid": "xsdfs4534543534534",
"code_type": 1,
"order_id": "23434sdfsdf34342",
"sku_id": "12345",
"union_id": "232323"
}
}

View File

@@ -0,0 +1,12 @@
{
"revoke_request_no": "233244dfgfdfgsdfgsdf",
"reovke_vouchers": [
{
"encrypted_code": "223dfsdf"
},
{
"code": "123412",
"sku_id": "12345"
}
]
}

View File

@@ -0,0 +1,35 @@
{
"errcode": 0,
"errmsg": "成功",
"voucher_list": [
{
"code": "232323",
"status": 2,
"send_time": 1699856182,
"update_time": 1699856182,
"start_time": 1699856182,
"end_time": 1699856182,
"consume_time": 1699856182,
"refund_time": 1699856182,
"product_id": "12345",
"consume_store_name": "xxx旗舰店",
"voucher_type": 1,
"voucher_buy_amount": 0,
"voucher_actual_amount": 0,
"telphone_no": "fasdf343df34545",
"openid": "xsdfs4534543534534",
"code_type": 1,
"order_id": "23434sdfsdf34342",
"sku_id": "12345"
}
],
"fail_voucher_list": [
{
"encrypted_code": "csbm9",
"code": "sqfvm",
"sku_id": 12345,
"ret_code": 0,
"ret_msg": ""
}
]
}

View File

@@ -0,0 +1,5 @@
{
"product_id": "12345",
"sku_id": "12345",
"codes": [ "232323", "23232323", "32434454545" ]
}

View File

@@ -0,0 +1,16 @@
{
"errcode": 10001,
"errmsg": "部分成功",
"product_id": "12345",
"total_count": 3,
"success_count": 2,
"success_codes": [ "232323", "23232323" ],
"fail_count": 1,
"fail_codes": [
{
"code": "32434454545",
"errcode": 111,
"errmsg": "此code已上传"
}
]
}