| | |
| | | |
| | | |
| | | @PostMapping("/base/v1/mini-program/navigation/route-and-fare") |
| | | @ApiOperation(value = "导航-获取路线和费用", tags = {"小程序-获取路线和费用"}, response = RouteAndFareVo.class) |
| | | @ApiOperation(value = "导航-获取路线和费用(弃用)", tags = {"小程序-获取路线和费用(弃用)"}, response = RouteAndFareVo.class) |
| | | @XpClientCheck(checkToken = false, checkOtpToken = true) |
| | | public R<RouteAndFareVo> getRouteAndFare(@RequestBody @Valid RouteAndFareDto routeAndFareDto, HttpServletRequest request) { |
| | | // uid已通过拦截器otp校验,可以直接使用 |
| | |
| | | |
| | | |
| | | @GetMapping("/base/v1/mini-program/pricing/rules/{openCityId}") |
| | | @ApiOperation(value = "获取费用规则", tags = {"小程序-根据开通城市获取费用规则"}, response = String.class) |
| | | @ApiOperation(value = "获取费用规则(弃用)", tags = {"小程序-根据开通城市获取费用规则(弃用)"}, response = String.class) |
| | | public R<?> getPricingRules(@PathVariable Long openCityId) { |
| | | XpPricing xpPricing = xpPricingService.getOne(new LambdaQueryWrapper<XpPricing>().eq(XpPricing::getCityId, openCityId).eq(XpPricing::getPricingType, 1).last("limit 1")); |
| | | if (xpPricing != null) { |
| | |
| | | * @return |
| | | */ |
| | | @PostMapping("/base/v1/mini-program/pricing/getWaitTime") |
| | | @ApiOperation(value = "获取等待时间", tags = {"小程序-获取等待时间"}, response = Integer.class) |
| | | @ApiOperation(value = "获取等待时间(弃用)", tags = {"小程序-获取等待时间(弃用)"}, response = Integer.class) |
| | | public R<Integer> getWaitTime(@RequestBody LonLatDto dto) { |
| | | return R.ok(xpPricingService.getWaitTime(dto.getLongitude(), dto.getLatitude())); |
| | | } |
| | |
| | | * 播单 |
| | | */ |
| | | @PostMapping("/base/v1/mini-program/order/save") |
| | | @ApiOperation(value = "保存订单", tags = {"小程序-保存订单"}) |
| | | @ApiOperation(value = "保存订单(弃用)", tags = {"小程序-保存订单(弃用)"}) |
| | | @XpClientCheck(checkToken = false, checkOtpToken = true) |
| | | public R<SaveOrderVo> saveOrder(@RequestBody @Validated XpOrderDto dto, HttpServletRequest request) { |
| | | String uid = request.getHeader("XP-Uid"); |