简要描述:
- 获取项目支持的所有门店
请求URL:
GET/plugin.appointment.frontend.store.get-list-by-project-id
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
lng | 是 | float | 经度 |
lat | 是 | float | 纬度 |
project_id | 是 | int | 项目ID |
返回示例:
正确时返回:
{
"result": 1,
"msg": "成功",
"data": [
{
"id": 14,
"store_name": "门店名称1",
"thumb": "http://127.0.0.1:88/attachment/images/8/2018/09/Rc9cHqZwtTX77fc6hT6tZFvwT7vvqv.jpg",
"longitude": "114.055593",
"latitude": "22.551731",
"address": "门店名称1地址",
"mobile": "15219025049",
"business_hours_start": "10:00",
"business_hours_end": "22:00",
"distance": 108.1,
"unit": "km"
},
{
"id": 15,
"store_name": "门店名称2",
"thumb": "http://127.0.0.1:88/attachment/images/8/2018/09/Rc9cHqZwtTX77fc6hT6tZFvwT7vvqv.jpg",
"longitude": "114.155593",
"latitude": "22.551731",
"address": "门店名称2地址",
"mobile": "15219025049",
"business_hours_start": "10:00",
"business_hours_end": "22:00",
"distance": 115.9,
"unit": "km"
}
]
}
错误时返回:
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
id | int | 门店ID |
store_name | string | 门店名称 |
thumb | string | 门店缩略图 |
longitude | float | 经度 |
latitude | float | 纬度 |
address | string | 地址 |
mobile | string | 电话 |
business_hours_start | string | 营业开始时间 |
business_hours_end | string | 营业结束时间 |
distance | float | 距离 |
unit | float | 距离单位 |
备注:
- 更多返回错误代码请看首页的错误代码描述