| | |
| | | return ResponseUtil.success(c3ChargingService.getChargingInfo(poleId)); |
| | | } |
| | | |
| | | // /** |
| | | // * 充电开启 |
| | | // */ |
| | | // @AnonymousAccess |
| | | // @PostMapping("/startCharging") |
| | | // public ResponseVO<Object> startCharging(@RequestBody C3ChargingParam c3ChargingParam) { |
| | | // String result = c3ChargingService.startCharging(c3ChargingParam.getC3Mac(), c3ChargingParam.getChargingCapacity(), c3ChargingParam.getChargeAmount()); |
| | | // if ("操作成功".equals(result)) { |
| | | // return ResponseUtil.success(result); |
| | | // } else { |
| | | // return ResponseUtil.fail(result); |
| | | // } |
| | | // |
| | | // } |
| | | /** |
| | | * 充电开启 |
| | | */ |
| | | @AnonymousAccess |
| | | @PostMapping("/startCharging") |
| | | public ResponseVO<Object> startCharging(@RequestBody C3ChargingParam c3ChargingParam) { |
| | | String result = c3ChargingService.startCharging(c3ChargingParam.getC3Mac(), c3ChargingParam.getChargingCapacity(), c3ChargingParam.getChargeAmount()); |
| | | if ("操作成功".equals(result)) { |
| | | return ResponseUtil.success(result); |
| | | } else { |
| | | return ResponseUtil.fail(result); |
| | | } |
| | | |
| | | } |
| | | |
| | | /** |
| | | * 充电结束——小程序用户结束,不需要token,需要openId |