| | |
| | | @RequestParam(required = false) Integer communityId) { |
| | | |
| | | IPage<VideoPointVo> pointVoIPage = iVideoPointService.getList(streetId, communityId, current.intValue(), size.intValue()); |
| | | pointVoIPage.getRecords() |
| | | .stream() |
| | | .forEach(item -> item.setUrlAddress(videoUtil.getVideo(item.getPlatResourceId(), "HLS", 0))); |
| | | // pointVoIPage.getRecords() |
| | | // .stream() |
| | | // .forEach(item -> item.setUrlAddress(videoUtil.getVideo(item.getPlatResourceId(), "HLS", 0))); |
| | | return CommonResult.success(pointVoIPage); |
| | | } |
| | | |
| | |
| | | @ApiOperation("添加") |
| | | @LogSave(operationType = "点位管理", contain = "添加点位") |
| | | public CommonResult addVideoPoint(@RequestBody VideoPoint videoPoint) { |
| | | videoPoint.setType(0); |
| | | return CommonResult.success(iVideoPointService.save(videoPoint)); |
| | | } |
| | | |