| | |
| | | //同步LED |
| | | result = hkSyncDeviceService.syncHkLed(param); |
| | | }else if(Constants.equalsInteger(param.getType(),Constants.THREE)){ |
| | | //同步广播 |
| | | //同步广播点 |
| | | result = hkSyncDeviceService.syncHkBroadcast(param); |
| | | }else if(Constants.equalsInteger(param.getType(),Constants.FOUR)){ |
| | | //同步广播 |
| | |
| | | param.setWithCameras(0); |
| | | List<PageRegionInfoResponse> result = new ArrayList<>(); |
| | | try { |
| | | // result = boardService.getRegionTree( param); |
| | | result = boardService.getRegionTree( param); |
| | | //------TODO---------测试模拟数据----start----- |
| | | for (int i = 0; i < 5; i++) { |
| | | /* for (int i = 0; i < 5; i++) { |
| | | PageRegionInfoResponse t = new PageRegionInfoResponse(); |
| | | t.setName("总区域_"+i); |
| | | t.setIndexCode(i+"_code"); |
| | |
| | | t.getChildList().add(t1); |
| | | } |
| | | result.add(t); |
| | | } |
| | | }*/ |
| | | //------TODO---------测试模拟数据----end----- |
| | | }catch (Exception e){ |
| | | |
| | |
| | | return ApiResponse.success( deviceService.setBroadcaseBobaoHttp(body)); |
| | | } |
| | | @ApiOperation("【海康】广播播报") |
| | | @PostMapping("/sendBobaoOpenapi") |
| | | @PostMapping("/sendBobaoOpenApi") |
| | | public ApiResponse<List<Map<String,Object>>> sendBobaoOpenapi(@RequestBody Device body , HttpServletResponse response) { |
| | | deviceService.setBroadcaseBobao(body); |
| | | return ApiResponse.success(null); |