| | |
| | | * 业务流程-车门解锁/后备箱解锁 |
| | | */ |
| | | @ApiOperation(value = "打开车门操作", tags = {"小程序-业务流程"}) |
| | | @PostMapping("/api/v1/order/vehicle/unlock") |
| | | @PostMapping("/api/v1/mini-program/order/vehicle/unlock") |
| | | public R<Integer> unlock(@RequestBody UnlockAppletDTO dto) { |
| | | return R.ok(xpVehicleService.unlock(dto)); |
| | | } |
| | |
| | | * 业务流程-打开设置温度 |
| | | */ |
| | | @ApiOperation(value = "打开设置温度", tags = {"小程序-业务流程"}) |
| | | @PostMapping("/api/v1/order/ac/set-temperature") |
| | | @PostMapping("/api/v1/mini-program/order/ac/set-temperature") |
| | | public R<Integer> setTemperature(@RequestBody SetTemperatureDTO dto) { |
| | | return R.ok(xpVehicleService.setTemperature(dto)); |
| | | } |
| | |
| | | * 业务流程-通过订单id查询当前车辆温度 |
| | | */ |
| | | @ApiOperation(value = "通过订单id查询当前车辆温度", tags = {"小程序-业务流程"}) |
| | | @GetMapping("/api/v1/order/queryTemperatureByOrderId") |
| | | @GetMapping("/api/v1/mini-program/order/queryTemperatureByOrderId") |
| | | public R<VehicleTemperatureDto> queryTemperatureByOrderId(@RequestParam Long orderId, HttpServletRequest request) { |
| | | String uid = request.getHeader("XP-Uid"); |
| | | VehicleTemperatureDto vehicleTemperatureDto = xpVehicleService.queryTemperatureByOrderId(orderId,uid); |