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

@@ -8,7 +8,15 @@
"product_info": {
"product_id": "3286",
"sku_id": "4740",
"count": 1
"count": 1,
"voucher_list": [
{
"vourcher_code": "232323"
},
{
"vourcher_code": "232324"
}
]
},
"details": {
"desc": "1234",
@@ -38,6 +46,7 @@
"ret": 0,
"message": ""
},
"type": "REFUND"
"type": "REFUND",
"gen_scene": 0
}
}

View File

@@ -0,0 +1,23 @@
{
"errcode": 0,
"errmsg": "ok",
"funds_flow": {
"flow_id": "10000057741221110",
"funds_type": 3,
"flow_type": 2,
"amount": 1,
"balance": 28281,
"related_info_list": [
{
"related_type": 2,
"aftersale_id": "1000283382788072",
"transaction_id": "4200001619202211090964182530"
},
{
"related_type": 1,
"order_id": "3707337764590192128",
"transaction_id": "4200001619202211090964182530"
}
]
}
}

View File

@@ -0,0 +1,8 @@
{
"page": 1,
"page_size": 10,
"start_time": 1668008734,
"end_time": 1668008737,
"next_key": "CAAQABgBIhExMDAwMDA0MTU3MzIyMTEwOSiflq+bBg==",
"transaction_id": "4200001619202211090964182530"
}

View File

@@ -0,0 +1,7 @@
{
"errcode": 0,
"errmsg": "ok",
"flow_ids": [ "123243", "123124134" ],
"has_more": true,
"next_key": "CO0GEGQY2vQFIhI1MTAwMDAxNDQ3NDgyMTEwMjEo7rfFiwY="
}

View File

@@ -35,7 +35,14 @@
"extra_service": {
"seven_day_return": 1,
"freight_insurance": 0
}
},
"voucher_list": [
{
"voucher_code": "12345",
"voucher_type": 1,
"voucher_buy_amount": 10000
}
]
}
],
"pay_info": {

View File

@@ -0,0 +1,37 @@
{
"out_product_id": "test_120719261",
"product_type": 1,
"product_name": "测试商品",
"category_id": "545201",
"brand_id": "10010719",
"head_imgs": [
"https://mmecimage.cn/p/wx2b255582a7b4bfd0/HPfcDsYrzbTlVSFQI9Qar0uzDhKI-EB7Efryf-dxlUE",
"https://mmecimage.cn/p/wx2b255582a7b4bfd0/HAOY-e61JPVNI5fsTlOcy-1r_rSxqnAsIUWqXXWNJSE",
"https://mmecimage.cn/p/wx2b255582a7b4bfd0/HLD6dz9RbUkPzBQGHnpb9Z7BcK9kF1HYeLkwxiK9RtI"
],
"verify_page": {
"appid": "wxca8d4b8e8feedc2a",
"path": "main/channels/buy/buy.html?productId=123"
},
"code_source_type": 1,
"attr_kv_map": {
"use_date_rule": "{\\\"validate_type\\\":1,\\\"use_date\\\":{\\\"use_start_date\\\":\\\"2023-11-29\\\",\\\"use_end_date\\\":\\\"2023-12-31\\\"}\\}",
"use_time": "{\"use_time_type\":2,\"time_periods\":[{\"use_start_time\":\"10:00:00\",\"use_end_time\":\"20:00:00\"}]}",
"detail_imgs": "[\"https://mmecimage.cn/xxxxxxxxxx\",\"https://mmecimage.cn/yyyyyyyyyy\",\"https://mmecimage.cn/zzzzzzzzzz\"]",
"set_meals": "[{\"group_name\": \"套餐名称\", \"items\": [{\"item_count\": 1, \"item_name\": \"项目名称\",\"item_price\": 28800}],\"option_count\": 1}]",
"exclusive_date": "{\"enable\": 0}",
"voucher_amount": "100",
"bring_out_type": "1",
"appointment": "{\"need_appointment\":0}",
"need_phone_num": "0",
"additional_rule": "\"附加规则\"",
"available_store_desc": "\"可用门店描述\"",
"settle_type": "1",
"refund_policy": "1"
},
"skus": [
{
"sale_price": 100
}
]
}

View File

@@ -0,0 +1,10 @@
{
"errcode": 0,
"errmsg": "ok",
"data": {
"product_id": "15000000000000",
"sku_ids": [
"1234567890"
]
}
}

View File

@@ -0,0 +1,9 @@
{
"product_id": "15000000392025",
"skus": [
{
"sku_id": "2022104954",
"sale_price": 90
}
]
}

View File

@@ -0,0 +1,4 @@
{
"product_id": "15000000134007",
"data_type": 2
}

View File

@@ -0,0 +1,43 @@
{
"errcode": 0,
"errmsg": "ok",
"draft_data": {
"product_id": "15000000134007",
"out_product_id": "test1",
"product_type": 1,
"product_name": "测试商品改",
"category_id": "1452",
"brand_id": "2100000000",
"head_imgs": [
"https://mmecimage.cn/p/wx2b255582a7b4bfd0/HA7ukhipcfggnDP8l5EqCwX1YsvxMZwAFvoPNqG-IbU",
"https://mmecimage.cn/p/wx2b255582a7b4bfd0/HO7eONXc8Y9uLHr0q0Rs6UvJ0iC0oAuQD3whJEA5Sc4",
"https://mmecimage.cn/p/wx2b255582a7b4bfd0/HKBXBm8pze5WcayaDacjfSveBYQIQzKrVaR3zi2tja4"
],
"verify_page": {
"appid": "wxca8d4b8e8feedc2a",
"path": "main/channels/buy/buy.html?productId=123"
},
"code_source_type": 1,
"attr_kv_map": {
"voucher_amount": "222",
"use_date_rule": "{\"validate_type\":1,\"use_date\":{\"use_start_date\":\"2023-11-29\",\"use_end_date\":\"2023-12-15\"}}",
"exclusive_date": "{\"days_of_week\":[]}",
"settle_type": "2",
"need_phone_num": "0",
"bring_out_type": "1",
"refund_policy": "0",
"use_time": "{\"use_time_type\":1,\"time_periods\":[]}"
},
"skus": [
{
"sku_id": "1930992007",
"sale_price": 123,
"stock_num": 21
}
],
"draft_status": 1,
"audit_result": {
"audit_status": 0
}
}
}

View File

@@ -0,0 +1,34 @@
{
"product_id": 15000000134007,
"out_product_id": "test-out_id",
"product_type": 1,
"product_name": "测试商品改",
"category_id": 1452,
"brand_id": 2100000000,
"head_imgs": [
"https://mmecimage.cn/p/wx2b255582a7b4bfd0/HA7ukhipcfggnDP8l5EqCwX1YsvxMZwAFvoPNqG-IbU",
"https://mmecimage.cn/p/wx2b255582a7b4bfd0/HO7eONXc8Y9uLHr0q0Rs6UvJ0iC0oAuQD3whJEA5Sc4",
"https://mmecimage.cn/p/wx2b255582a7b4bfd0/HKBXBm8pze5WcayaDacjfSveBYQIQzKrVaR3zi2tja4"
],
"verify_page": {
"appid": "wxca8d4b8e8feedc2a",
"path": "main/channels/buy/buy.html?productId=123"
},
"code_source_type": 1,
"attr_kv_map": {
"voucher_amount": "222",
"use_date_rule": "{\"validate_type\":1,\"use_date\":{\"use_start_date\":\"2023-11-29\",\"use_end_date\":\"2023-12-15\"}}",
"exclusive_date": "{\"days_of_week\":[]}",
"settle_type": "2",
"need_phone_num": "0",
"bring_out_type": "1",
"refund_policy": "0",
"use_time": "{\"use_time_type\":1,\"time_periods\":[]}"
},
"skus": [
{
"sku_id": 1930992007,
"sale_price": 111
}
]
}

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已上传"
}
]
}