| | |
| | | } |
| | | |
| | | /** |
| | | * 获取萤石云摄像头信息 |
| | | * |
| | | * @param |
| | | * @return |
| | | */ |
| | | @GetMapping("/getYSYInfo/{deviceSerial}") |
| | | public ResponseVO<Object> getMonitorInfo(@PathVariable String deviceSerial) { |
| | | return ResponseUtil.success(monitorService.getMonitorInfo(deviceSerial)); |
| | | } |
| | | |
| | | /** |
| | | * 添加萤石云摄像头 |
| | | * |
| | | * @param monitorParam 添加摄像头结果 |
| | |
| | | @PostMapping("/addYSYMonitor") |
| | | public ResponseVO<Object> addYSYMonitor(@RequestBody MonitorParam monitorParam) { |
| | | YSY_MonitorDto addMonitorDto = monitorService.addYSYMonitor(monitorParam.getAccessToken(), monitorParam.getDeviceSerial(), monitorParam.getValidateCode()); |
| | | // YSY_MonitorDto addMonitorDto = monitorService.addYSYMonitor(monitorParam.getAccessToken(), monitorParam.getDeviceSerial()); |
| | | |
| | | if ("200".equals(addMonitorDto.getCode())) { |
| | | return ResponseUtil.success(addMonitorDto); |
| | |
| | | if ("200".equals(getMonitorDto.getCode())) { |
| | | Monitor monitor = new Monitor(); |
| | | monitor.setDeviceSerial(getMonitorDto.getData().getDeviceSerial()); |
| | | monitor.setDevicesCode(monitorParam.getValidateCode()); |
| | | // monitor.setDevicesCode(monitorParam.getValidateCode()); |
| | | monitor.setDeviceName(getMonitorDto.getData().getDeviceName()); |
| | | monitor.setDeviceType(getMonitorDto.getData().getModel()); |
| | | monitor.setEquipmentState(getMonitorDto.getData().getStatus()); |
| | |
| | | if ("200".equals(getMonitorDto.getCode())) { |
| | | Monitor monitor = new Monitor(); |
| | | monitor.setDeviceSerial(getMonitorDto.getData().getDeviceSerial()); |
| | | monitor.setDevicesCode(monitorParam.getValidateCode()); |
| | | // monitor.setDevicesCode(monitorParam.getValidateCode()); |
| | | monitor.setDeviceName(getMonitorDto.getData().getDeviceName()); |
| | | monitor.setDeviceType(getMonitorDto.getData().getModel()); |
| | | monitor.setEquipmentState(getMonitorDto.getData().getStatus()); |