| | |
| | | @GetMapping |
| | | public ResponseVO<Object> listMonitor() { |
| | | List<Monitor> list = monitorService.listMonitor(); |
| | | return ResponseUtil.successPage(list); |
| | | return ResponseUtil.success(list); |
| | | } |
| | | |
| | | /** |
| | |
| | | * |
| | | * @return |
| | | */ |
| | | @GetMapping("/listMonitorByKeyword") |
| | | @PostMapping("/listMonitorByKeyword") |
| | | public ResponseVO<Object> listMonitorByKeyword(@RequestBody MonitorParam monitorParam) { |
| | | List<Monitor> list = monitorService.listMonitorByKeyword(monitorParam); |
| | | return ResponseUtil.successPage(list); |
| | | return ResponseUtil.success(list); |
| | | } |
| | | |
| | | |
| | |
| | | */ |
| | | @GetMapping("/getMonitorVideoUrl") |
| | | public ResponseVO<Object> getMonitorVideoUrl(@RequestBody MonitorParam monitorParam) { |
| | | String URL = monitorService.getMonitorVideoUrl(monitorParam.getAccessToken(), monitorParam.getDeviceSerial(), monitorParam.getProtocol()); |
| | | String URL = monitorService.getMonitorVideoUrl(monitorParam.getAccessToken(), |
| | | monitorParam.getDeviceSerial(), monitorParam.getProtocol(), monitorParam.getExpireTime()); |
| | | |
| | | return ResponseUtil.success(URL); |
| | | } |