接口:createActivity——创建活动 - Jarven89/Udriving_Server GitHub Wiki
createActivity
POST
String title 活动名
List<String> introducePicture 活动介绍图片
String createUserId 创建人用户id
String createNikeName 创建人昵称
- AddressInfo departAddressInfo 出发地信息
- AddressInfo destinationAddressInfo 目的地信息
long departTimestamp 出发时间
long backTimestamp 返回时间
float estimateCost 预估费用
String introduce 活动介绍
String notes 注意事项
- List<AddressInfo> approachCoordinate 途径地坐标
{ "title": "大同之行", "introducePicture": ["https://liuhao.space/11111.png", "https://liuhao.space/22222.png", "https://liuhao.space/33333.png"], "createUserId": 1, "createNikeName": "龙少浪", "departAddressInfo": { "longitude": 40.096171, "latitude": 116.298131 }, "destinationAddressInfo": { "longitude": 40.110601, "latitude": 113.145651 }, "approachCoordinate": [{ "longitude": 40.110601, "latitude": 113.145651 }, { "longitude": 40.110601, "latitude": 113.145651 }, { "longitude": 40.110601, "latitude": 113.145651 }, { "longitude": 40.110601, "latitude": 113.145651 }], "departTimestamp": 1546343302000, "backTimestamp": 1549021702000, "estimateCost": 1000.50, "introduce": "这是一次疯癫的旅行", "notes": "1、注意带钱。\n2、注意带脑子。\n3、注意带身份证" }
short code 接口响应状态
String message 接口响应状态描述
- CreateActivityResponse data 接口响应附带数据
{ "code": 0, "message": null, "data": { "id": 2019010615270001 } }