| | |
| | | @GetMapping("/server_config") |
| | | public ResponseEntity<JSONObject> serverConfig() { |
| | | JSONObject result = new JSONObject(); |
| | | result.put("deviceIp", sipConfig.getSipIp()); |
| | | result.put("devicePort", sipConfig.getSipPort()); |
| | | result.put("username", sipConfig.getSipId()); |
| | | result.put("password", sipConfig.getSipPassword()); |
| | | result.put("deviceIp", sipConfig.getIp()); |
| | | result.put("devicePort", sipConfig.getPort()); |
| | | result.put("username", sipConfig.getId()); |
| | | result.put("password", sipConfig.getPassword()); |
| | | return new ResponseEntity<>(result, HttpStatus.OK); |
| | | } |
| | | |
| | |
| | | }) |
| | | public PageInfo<ParentPlatform> platforms(@PathVariable int page, @PathVariable int count){ |
| | | |
| | | if (logger.isDebugEnabled()) { |
| | | logger.debug("查询所有上级设备API调用"); |
| | | } |
| | | // if (logger.isDebugEnabled()) { |
| | | // logger.debug("查询所有上级设备API调用"); |
| | | // } |
| | | return storager.queryParentPlatformList(page, count); |
| | | } |
| | | |
| | |
| | | @ResponseBody |
| | | public ResponseEntity<String> exitPlatform(@PathVariable String serverGBId){ |
| | | |
| | | if (logger.isDebugEnabled()) { |
| | | logger.debug("查询上级平台是否存在API调用:" + serverGBId); |
| | | } |
| | | // if (logger.isDebugEnabled()) { |
| | | // logger.debug("查询上级平台是否存在API调用:" + serverGBId); |
| | | // } |
| | | ParentPlatform parentPlatform = storager.queryParentPlatByServerGBId(serverGBId); |
| | | return new ResponseEntity<>(String.valueOf(parentPlatform != null), HttpStatus.OK); |
| | | } |
| | |
| | | @RequestParam(required = false) Boolean choosed, |
| | | @RequestParam(required = false) Boolean channelType){ |
| | | |
| | | if (logger.isDebugEnabled()) { |
| | | logger.debug("查询所有所有通道API调用"); |
| | | } |
| | | // if (logger.isDebugEnabled()) { |
| | | // logger.debug("查询所有所有通道API调用"); |
| | | // } |
| | | PageInfo<ChannelReduce> channelReduces = null; |
| | | if (platformId != null ) { |
| | | channelReduces = storager.queryAllChannelList(page, count, query, online, channelType, platformId, choosed); |