| | |
| | | * @param monitorParam 添加摄像头结果 |
| | | * @return |
| | | */ |
| | | @GetMapping("/addYSYMonitor") |
| | | @PostMapping("/addYSYMonitor") |
| | | public ResponseVO<Object> addYSYMonitor(@RequestBody MonitorParam monitorParam) { |
| | | YSY_MonitorDto addMonitorDto = monitorService.addYSYMonitor(monitorParam.getAccessToken(), monitorParam.getDeviceSerial(), monitorParam.getValidateCode()); |
| | | |
| | |
| | | * @param monitorParam 添加摄像头结果 |
| | | * @return |
| | | */ |
| | | @GetMapping("/deleteYSYMonitor") |
| | | @PostMapping("/deleteYSYMonitor") |
| | | public ResponseVO<Object> deleteYSYMonitor(@RequestBody MonitorParam monitorParam) { |
| | | YSY_MonitorDto addMonitorDto = monitorService.deleteYSYMonitor(monitorParam.getAccessToken(), monitorParam.getDeviceSerial()); |
| | | |
| | |
| | | /** |
| | | * 获取单个设备信息 getYSYMonitorInfo |
| | | */ |
| | | @GetMapping("/getYSYMonitorInfo") |
| | | @PostMapping("/getYSYMonitorInfo") |
| | | public ResponseVO<Object> getYSYMonitorInfo(@RequestBody MonitorParam monitorParam) { |
| | | YSY_MonitorDto getMonitorDto = monitorService.getYSYMonitorInfo(monitorParam.getAccessToken(), monitorParam.getDeviceSerial()); |
| | | |
| | |
| | | * @param monitorParam |
| | | * @return |
| | | */ |
| | | @GetMapping("/getYSYMonitorInfoAndaddMonitorToTable") |
| | | @PostMapping("/getYSYMonitorInfoAndaddMonitorToTable") |
| | | public boolean getYSYMonitorInfoAndaddMonitorToTable(@RequestBody MonitorParam monitorParam) { |
| | | YSY_MonitorDto getMonitorDto = monitorService.getYSYMonitorInfo(monitorParam.getAccessToken(), monitorParam.getDeviceSerial()); |
| | | |
| | |
| | | /** |
| | | * 获取摄像头URL播放地址 |
| | | */ |
| | | @GetMapping("/getMonitorVideoUrl") |
| | | @PostMapping("/getMonitorVideoUrl") |
| | | public ResponseVO<Object> getMonitorVideoUrl(@RequestBody MonitorParam monitorParam) { |
| | | String URL = monitorService.getMonitorVideoUrl(monitorParam.getAccessToken(), |
| | | monitorParam.getDeviceSerial(), monitorParam.getProtocol(), monitorParam.getExpireTime()); |