文档
测试

10. 骑行结果

POST
/api/returnRecord/getNewestReturnRecord

接口描述

骑行结果

请求头

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

请求参数

参数名
类型
描述
必填
timestamp
long
时间戳(毫秒)
必填
noncestr
string
8位随机数
必填
sign
string
参数签名
必填
body
object
参数数据
必填
way
int
请求方式 1.小程序 2.APP
必填
token
string
用户登录成功返回token
必填
userId
string
用户id
必填
id
string
还车成功时返回的(recordId)
必填

响应参数

参数名
类型
描述
必填
timestamp
long
时间戳(毫秒)
必填
sign
string
参数签名
必填
body
object
响应数据
必填
code
string
响应状态码 10000成功,10001为暂无骑行记录,10002订单免费或者已支付,其他失败
必填
msg
string
响应描述(当code不为1000返回信息)
必填
returnRecord
json
骑行记录信息
必填
bikeNum
string
车辆编号
必填
useTime
string
用车时间
必填
fee
string
用车费用
必填
id
string
记录id(支付时需要)
必填
returnTime
string
还车时间
必填
tripDist
string
骑行距离
必填
balanceDesc
string
账户余额
必填
startFee
string
起步价
必填
dispatchFee
string
运营调度费用
必填
returnAddress
string
关锁地点
必填

说明 / 示例

## 1.请求示例 POST https://{host}:{port}/api/returnRecord/getNewestReturnRecord Content-Type: application/json ```json { "sign": "66cb5b781b47c61b235ce1788c3ffde5", "body": { "bikeNum": "00002", "userId": "5b4fda094c39434c82fbe2efdaa1a381", "way": 1, "token": "nxv6m4hmd86sqr69zivqrhbav9h0j09l" }, "noncestr": "cqpojylq", "timestamp": 1597040359523 } ``` ## 2.响应样例 Status Code: 1000 ok Content-Type: application/json ```json { "body": { "code": "10000", "returnRecord": { "bikeNum": "000002", "fee": "0.10元", "useTime": "1分钟40秒" } }, "timestamp": 1597040367320, "sign": "f279a1284abe55b6604f174235d8bd56" } ```