| | |
| | | @GetMapping("/devices/{deviceId}") |
| | | public ResponseEntity<Device> devices(@PathVariable String deviceId){ |
| | | |
| | | if (logger.isDebugEnabled()) { |
| | | logger.debug("查询视频设备API调用,deviceId:" + deviceId); |
| | | } |
| | | // if (logger.isDebugEnabled()) { |
| | | // logger.debug("查询视频设备API调用,deviceId:" + deviceId); |
| | | // } |
| | | |
| | | Device device = storager.queryVideoDevice(deviceId); |
| | | return new ResponseEntity<>(device,HttpStatus.OK); |
| | |
| | | @GetMapping("/devices") |
| | | public PageInfo<Device> devices(int page, int count){ |
| | | |
| | | if (logger.isDebugEnabled()) { |
| | | logger.debug("查询所有视频设备API调用"); |
| | | } |
| | | // if (logger.isDebugEnabled()) { |
| | | // logger.debug("查询所有视频设备API调用"); |
| | | // } |
| | | |
| | | return storager.queryVideoDeviceList(page, count); |
| | | } |
| | |
| | | @RequestParam(required = false) String query, |
| | | @RequestParam(required = false) Boolean online, |
| | | @RequestParam(required = false) Boolean channelType) { |
| | | if (logger.isDebugEnabled()) { |
| | | logger.debug("查询视频设备通道API调用"); |
| | | } |
| | | // if (logger.isDebugEnabled()) { |
| | | // logger.debug("查询视频设备通道API调用"); |
| | | // } |
| | | if (StringUtils.isEmpty(query)) { |
| | | query = null; |
| | | } |
| | |
| | | @RequestParam(required = false) String online, |
| | | @RequestParam(required = false) Boolean channelType){ |
| | | |
| | | if (logger.isDebugEnabled()) { |
| | | logger.debug("查询所有视频通道API调用"); |
| | | } |
| | | // if (logger.isDebugEnabled()) { |
| | | // logger.debug("查询所有视频通道API调用"); |
| | | // } |
| | | DeviceChannel deviceChannel = storager.queryChannel(deviceId,channelId); |
| | | if (deviceChannel == null) { |
| | | PageInfo<DeviceChannel> deviceChannelPageResult = new PageInfo<>(); |