简要描述:
- 根据商品ID获取项目列表
请求URL:
GET/plugin.store-projects.frontend.project.get-list-by-goods-id
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
goods_id | 是 | int | 商品ID |
lng | 是 | float | 经度 |
lat | 是 | float | 纬度 |
返回示例:
正确时返回:
{
"result": 1,
"msg": "成功",
"data": [
{
"goods_id": 352,
"project_id": 2,
"service_count": 10,
"project_title": "测试项目2",
"thumb": "https://localhost:82/attachment/images/2/2019/08/fv8mhb830HBd8d803zduMqSSHS88qu.png",
"store_name": "话的门店",
"store_thumb": "http://localhost:82/addons/yun_shop/storage/app/avatars/store_applySl5RDnIJNR",
"store_business_hours_start": "",
"store_business_hours_end": "",
"store_distance": 35.7,
"store_distance_unit": "km",
"store_full_address":""
}
]
}
错误时返回:
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
goods_id | int | 商品ID |
project_id | int | 项目ID |
project_title | string | 项目名称 |
period | string | 期限 |
thumb | string | 缩略图 |
service_count | int | 项目服务次数 |
store_name | string | 门店名称 |
store_thumb | string | 门店缩略图 |
store_business_hours_start | string | 门店营业时间开始 |
store_business_hours_end | string | 门店营业时间结束 |
store_full_address | string | 门店地址 |
store_distance | float | 门店距离 |
store_distance_unit | string | 门店距离单位 |
store_longitude | float | 门店坐标longitude |
store_latitude | float | 门店坐标latitude |
备注:
- 更多返回错误代码请看首页的错误代码描述