文档
测试

8. 车辆详情

POST
/api/bike/getBikeDetail

接口描述

车辆详情

请求头

参数名
类型
描述
必填
content-Type
string
application/json;charset=utf-8
必填

请求参数

参数名
类型
描述
必填
timestamp
long
时间戳(毫秒)
必填
noncestr
string
8位随机数
必填
sign
string
参数签名
必填
body
object
参数数据
必填
token
string
用户登录成功返回token
必填
userId
string
用户id
必填
bikeNum
string
车辆编号
必填
queryType
int
查询类型 1.二维码 2.车辆编号
必填

响应参数

参数名
类型
描述
必填
timestamp
long
时间戳(毫秒)
必填
sign
string
响应数据签名
必填
body
object
响应数据
必填
code
string
响应状态码 10000成功 其他失败
必填
msg
string
响应描述(当code不为1000返回信息)
必填
bikeInfo
Object
数据对象
必填
bikeNum
string
车辆编号
必填
zktNum
string
中控序列号
必填
rentStatusDesc
string
车辆状态
必填
lockStatusDesc
string
车锁状态
必填
bikeOnlineDesc
string
在线状态
必填
zktStatusDesc
string
中控状态
必填
battery
string
电量
必填
batteryLife
string
剩余续航公里数
必填
lat
string
纬度
必填
lng
string
经度
必填
zktBtmac
string
中控mac地址
必填
areaId
int
区域id
必填

说明 / 示例

## 1.请求示例 POST https://{host}:{port}/api/bike/getBikeDetail Content-Type: application/json ```json { "sign": "0dabfdb5f11c8825a07ddf12ae137be9", "body": { "bikeNum": "000002", "userId": "b1228f74f5124dc592de23d3caec57ed", "token": "qoa64tpab1228f74f5124dc592de23d3caec57ed" }, "noncestr": "bke0c4ie", "timestamp": 1598412787065 } ``` ## 2.响应样例 Status Code: 1000 ok Content-Type: application/json ```json { "body": { "code": "10000", "bikeInfo": { "rentStatusDesc": "2", "lockStatusDesc": "未锁", "zktStatusDesc": "在线", "lng": "113.34715", "bikeOnlineDesc": "上线", "bikeNum": "000002", "zktNum": "861230042871237", "battery": "83.89", "lat": "23.166193", "batteryLife": "" } }, "timestamp": 1598412824790, "sign": "a28b9ae70fa50595b9ab8b46c38db67f" } ```