| | |
| | | public DeferredResult<ResponseEntity<Device>> devicesSync(@PathVariable String deviceId){ |
| | | |
| | | if (logger.isDebugEnabled()) { |
| | | logger.debug("设备信息同步API调用,deviceId:" + deviceId); |
| | | } |
| | | |
| | | logger.debug("设备信息同步API调用,deviceId:" + deviceId); |
| | | |
| | | Device device = storager.queryVideoDevice(deviceId); |
| | | cmder.catalogQuery(device); |
| | | DeferredResult<ResponseEntity<Device>> result = new DeferredResult<ResponseEntity<Device>>(); |
| | |
| | | PageResult pageResult = storager.querySubChannels(deviceId, channelId, query, channelType, online, page, count); |
| | | return new ResponseEntity<>(pageResult,HttpStatus.OK); |
| | | } |
| | | |
| | | @PostMapping("channel/update/{deviceId}") |
| | | public ResponseEntity<PageResult> updateChannel(@PathVariable String deviceId,DeviceChannel channel){ |
| | | storager.updateChannel(deviceId, channel); |
| | | return new ResponseEntity<>(null,HttpStatus.OK); |
| | | } |
| | | } |