车型列表
接口说明
- 获取当前城市的开通的所有车型
- 非必需接入接口
接口地址
https:// <SQYC_DOMAIN>/carapi/partner/getGroupsList
请求方式
POST
请求参数
名称 | 类型 | 是否必选 | 说明 |
---|---|---|---|
cityId | string | yes | 城市id |
sign | string | yes | 参考sign算法 |
channel | string | yes | 渠道名称,首汽提供 |
serviceId | string | no | 服务类型(不传默认为1,2,3,5),参考服务类型 |
返回数据
名称 | 类型 | 说明 |
---|---|---|
result | Integer | 0:成功非0 :失败原因编号 |
errmsg | string | 失败原因描述,若成功则值为空 |
data | object | 参考返回:{"1(服务类型serviceId)":[{"imgUrl":"默认图片", "selectedImgUrl":"选中时车型地址","selectedImgUrlNew":"选中时车辆地址(新):优先使用这个, 没有时,用selectedImgUrl", "unSelectedImgUrlNew":"车型未选中时图片地址(新):优先使用这个, 没有时用imgUrl"}]} |
返回示例
{
"result": 0,
"errmsg": "SUCCESS",
"data": [
{
"1": [
{
"imgUrl": "https://test-passenger.01zhuanche.com/car-rest/images/comfortable_us_3x.png",
"selectedImgUrl": "https://test-passenger.01zhuanche.com/car-rest/images/comfortable_s_3x.png",
"selectedImgUrlNew": "https://test-passenger.01zhuanche.com/car-rest/images/comfortable_s_3x.png",
"unSelectedImgUrlNew": "https://test-passenger.01zhuanche.com/car-rest/images/comfortable_s_3x.png",
"name": "舒适型",
"id": 34
}
]
}
]
}