简要描述:
请求域名:
- http://xx.com
请求URL:
POST/plugin.local-life.api.brand.store-list
参数:
| 参数名 | 是否必须 | 类型 | 说明 |
|---|---|---|---|
| brand_id | 是 | int | 品牌id |
| keyword | 否 | string | 搜索关键字 |
| longitude | 否 | string | 经度 |
| latitude | 否 | string | 纬度 |
返回示例:
正确时返回:
{
"result": 1,
"msg": "success",
"data": {
"current_page": 1,
"data": [
{
"store_id": 27,
"name": "测试门店3",
"longitude": "115.36",
"latitude": "40.39",
"tel": "1231",
"address": "123",
"distance": "117.63km"
}
],
"first_page_url": "https://dev15.yunzmall.com/addons/yun_shop/api.php?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "https://dev15.yunzmall.com/addons/yun_shop/api.php?page=1",
"links": [
{
"url": null,
"label": "« 上一页",
"active": false
},
{
"url": "https://dev15.yunzmall.com/addons/yun_shop/api.php?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "下一页 »",
"active": false
}
],
"next_page_url": null,
"path": "https://dev15.yunzmall.com/addons/yun_shop/api.php",
"per_page": 15,
"prev_page_url": null,
"to": 1,
"total": 1
}
}
返回参数说明:
| 参数名 | 类型 | 说明 |
|---|---|---|
| store_id | int | 门店id |
| name | string | 名称 |
| longitude | int | 经度 |
| latitude | int | 纬度 |
| tel | int | 门店电话 |
| address | int | 地址 |
| distance | int | 距离 |