| | |
| | | * 车辆运维-车辆运维-车辆开始充电 |
| | | */ |
| | | @ApiOperation(value = "车辆运维-车辆运维-车辆开始充电", tags = {"运维APP-车辆管理"}) |
| | | @PostMapping("/api/v1/chargingRecord/startCharging") |
| | | @PostMapping("/maintenance-app/api/v1/chargingRecord/startCharging") |
| | | public R<String> startCharging(@RequestBody XpChargingRecordStartDTO dto) { |
| | | |
| | | Long id = tokenService.getLoginOperationUser().getId(); |
| | |
| | | * 车辆运维-车辆运维-车辆结束充电 |
| | | */ |
| | | @ApiOperation(value = "车辆运维-车辆运维-车辆结束充电", tags = {"运维APP-车辆管理"}) |
| | | @PostMapping("/api/v1/chargingRecord/stopCharging") |
| | | @PostMapping("/maintenance-app/api/v1/chargingRecord/stopCharging") |
| | | public R<String> stopCharging(@RequestBody XpChargingRecordStopDTO dto) { |
| | | |
| | | Long id = tokenService.getLoginOperationUser().getId(); |
| | |
| | | * 车辆运维-车辆运维-车辆充电查询当前状态 |
| | | */ |
| | | @ApiOperation(value = "车辆运维-车辆运维-车辆充电查询当前状态", tags = {"运维APP-车辆管理"}) |
| | | @GetMapping("/api/v1/chargingRecord/queryChargingStatus") |
| | | @GetMapping("/maintenance-app/api/v1/chargingRecord/queryChargingStatus") |
| | | public R<ChargingStatusVO> queryChargingStatus(@RequestParam Long vehicleId) { |
| | | Long id = tokenService.getLoginOperationUser().getId(); |
| | | ChargingStatusVO chargingStatusVO = xpChargingRecordService.queryChargingStatus(vehicleId); |
| | |
| | | * 车辆运维-车辆运维-充电记录详情 |
| | | */ |
| | | @ApiOperation(value = "车辆运维-运维记录-充电记录详情", tags = {"运维APP-车辆管理"}) |
| | | @GetMapping("/api/v1/chargingRecord/chargingDetail") |
| | | @GetMapping("/maintenance-app/api/v1/chargingRecord/chargingDetail") |
| | | public R<XpChargingRecordVO> chargingDetail(@RequestParam Long id) throws UnsupportedEncodingException { |
| | | XpChargingRecordVO xpChargingRecordVO = xpChargingRecordService.chargingDetail(id); |
| | | return R.ok(xpChargingRecordVO); |