freeRidePub - Liangxiyao/freeRide GitHub Wiki

发布订单(/freeRide/pub)

1.描述

用户发布顺风车订单

2.Get请求

http://{host}/freeRide/pub

名称 类型 是否必选 描述
token string 必填 用户token
start string 必填 起始地
end string 必填 目的地
time long 必填 出发时间unix时间戳,毫秒
mobile string 必填 联系电话
seatCount int 必填 剩余座位
orderType int 必填 订单类型(1:车找人,2:人找车)
addressType int 必填 订单地址类型(1:同城顺风车,2:跨城顺风车)
contact string 选填 联系人
mark string 选填 备注

3.HTTP返回业务结果

名称 类型 是否必选 描述
code int 为0代表成功
message string 描述
res object 响应结果

4.示例报文