| | |
| | | } |
| | | } |
| | | |
| | | @ResponseBody |
| | | // 快捷叫车在乘客上车后,由接单司机补充目的地。 |
| | | @PostMapping("/api/order/privateCar/setDestination") |
| | | @ApiOperation(value = "快车快捷叫车设置目的地", tags = {"司机端-服务中"}, notes = "") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(value = "订单id", name = "orderId", required = true, dataType = "int"), |
| | | @ApiImplicitParam(value = "终点经度", name = "endLon", required = true, dataType = "double"), |
| | | @ApiImplicitParam(value = "终点纬度", name = "endLat", required = true, dataType = "double"), |
| | | @ApiImplicitParam(value = "终点地址", name = "endAddress", required = true, dataType = "string"), |
| | | @ApiImplicitParam(name = "Authorization", value = "Bearer +token", required = true, dataType = "String", paramType = "header", defaultValue = "Bearer eyJhbGciOiJIUzUxMiJ9.....") |
| | | }) |
| | | public ResultUtil setPrivateCarDestination(Integer orderId, Double endLon, Double endLat, String endAddress, HttpServletRequest request){ |
| | | try { |
| | | Integer uid = driverService.getUserIdFormRedis(request); |
| | | if(null == uid){ |
| | | return ResultUtil.tokenErr(); |
| | | } |
| | | return orderPrivateCarService.setDestination(orderId, uid, endLon, endLat, endAddress); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | return ResultUtil.runErr(); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |