| | |
| | | return ResponseUtil.success(c3ChargingService.SetHeartbeatPacketTimeCharging(c3ChargingParam.getC3Mac(), c3ChargingParam.getTime(), false)); |
| | | } |
| | | |
| | | // /** |
| | | // * 设置电压/电流常数(各一字节)(默认值0xBC64) |
| | | // */ |
| | | // @PostMapping("/SetConstant") |
| | | // public ResponseVO<Object> SetConstant(@RequestBody @Validated C3ChargingSetTimeParam c3ChargingSetTimeParam) { |
| | | // |
| | | // return ResponseUtil.success(c3ChargingService.SetHeartbeatPacketTimeCharging(c3ChargingSetTimeParam.getC3Mac(), c3ChargingSetTimeParam.getTime(), false)); |
| | | // } |
| | | /** |
| | | * 设置电压/电流常数(各一字节)(默认值0xBC64) |
| | | */ |
| | | @PostMapping("/SetConstant") |
| | | public ResponseVO<Object> SetConstant(@RequestBody @Validated C3ChargingParam c3ChargingParam) { |
| | | |
| | | return ResponseUtil.success(c3ChargingService.SetConstant(c3ChargingParam.getC3Mac(), c3ChargingParam.getConstant())); |
| | | } |
| | | |
| | | /** |
| | | * 设置地址 |
| | | */ |
| | | @PostMapping("/SetAddress") |
| | | public ResponseVO<Object> SetAddress(@RequestBody @Validated C3ChargingParam c3ChargingParam) { |
| | | |
| | | return ResponseUtil.success(c3ChargingService.SetAddress(c3ChargingParam.getC3Mac(), c3ChargingParam.getAddress())); |
| | | } |
| | | |
| | | /** |
| | | * 设置日历(同心跳包中的6字节日期时间) |
| | | */ |
| | | @PostMapping("/SetCalendar") |
| | | public ResponseVO<Object> SetCalendar(@RequestBody @Validated C3ChargingParam c3ChargingParam) { |
| | | |
| | | return ResponseUtil.success(c3ChargingService.SetCalendar(c3ChargingParam.getC3Mac() |
| | | , c3ChargingParam.getYear(), c3ChargingParam.getMonth(), c3ChargingParam.getDay(), c3ChargingParam.getHour(), c3ChargingParam.getMin(), c3ChargingParam.getSec())); |
| | | } |
| | | |
| | | /** |
| | | * 故障码上报清除 |
| | | */ |
| | | @PostMapping("/ClearedFaultCode") |
| | | public ResponseVO<Object> ClearedFaultCode(@RequestBody @Validated C3ChargingParam c3ChargingParam) { |
| | | |
| | | return ResponseUtil.success(c3ChargingService.ClearedFaultCode(c3ChargingParam.getC3Mac())); |
| | | } |
| | | |
| | | /** |
| | | * 恢复出厂值 |
| | | */ |
| | | @PostMapping("/RestoreFactoryValue") |
| | | public ResponseVO<Object> RestoreFactoryValue(@RequestBody @Validated C3ChargingParam c3ChargingParam) { |
| | | |
| | | return ResponseUtil.success(c3ChargingService.RestoreFactoryValue(c3ChargingParam.getC3Mac())); |
| | | } |
| | | |
| | | /** |
| | | * 软重启 |