| | |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 同步结束 |
| | | */ |
| | | @PostMapping("/EndOfTheSynchronization") |
| | | public ResponseVO<Object> EndOfTheSynchronization(@RequestBody C3ChargingParam c3ChargingParam) { |
| | | String result = c3ChargingService.EndOfTheSynchronization(c3ChargingParam.getC3Mac()); |
| | | |
| | | if ("操作成功".equals(result)) { |
| | | return ResponseUtil.success(result); |
| | | } else { |
| | | return ResponseUtil.fail(result); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 查询版本 |
| | | */ |
| | | @PostMapping("/QueryVersion") |
| | | public ResponseVO<Object> QueryVersion(@RequestBody C3ChargingParam c3ChargingParam) { |
| | | String result = c3ChargingService.QueryVersion(c3ChargingParam.getC3Mac()); |
| | | |
| | | if ("操作成功".equals(result)) { |
| | | return ResponseUtil.success(result); |
| | | } else { |
| | | return ResponseUtil.fail(result); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 查询心跳包间隔时间 |
| | | */ |
| | | @PostMapping("/QueryIntervalTime") |
| | | public ResponseVO<Object> QueryIntervalTime(@RequestBody C3ChargingParam c3ChargingParam) { |
| | | String result = c3ChargingService.QueryIntervalTime(c3ChargingParam.getC3Mac()); |
| | | |
| | | if ("操作成功".equals(result)) { |
| | | return ResponseUtil.success(result); |
| | | } else { |
| | | return ResponseUtil.fail(result); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 查询电压/电流常数 |
| | | */ |
| | | @PostMapping("/QueryConstant") |
| | | public ResponseVO<Object> QueryConstant(@RequestBody C3ChargingParam c3ChargingParam) { |
| | | String result = c3ChargingService.QueryConstant(c3ChargingParam.getC3Mac()); |
| | | |
| | | if ("操作成功".equals(result)) { |
| | | return ResponseUtil.success(result); |
| | | } else { |
| | | return ResponseUtil.fail(result); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 查询地址 |
| | | */ |
| | | @PostMapping("/QueryAddress") |
| | | public ResponseVO<Object> QueryAddress(@RequestBody C3ChargingParam c3ChargingParam) { |
| | | String result = c3ChargingService.QueryAddress(c3ChargingParam.getC3Mac()); |
| | | |
| | | if ("操作成功".equals(result)) { |
| | | return ResponseUtil.success(result); |
| | | } else { |
| | | return ResponseUtil.fail(result); |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 软重启 |