|
|
@@ -28,8 +28,6 @@ public class UpstreamController {
|
|
|
@Autowired
|
|
|
private IDeviceService deviceService;
|
|
|
|
|
|
- @Autowired
|
|
|
- private IDevicePayloadService devicePayloadService;
|
|
|
|
|
|
@Autowired
|
|
|
private IManageDeviceLivestreamUrlService livestreamUrlService;
|
|
|
@@ -37,8 +35,6 @@ public class UpstreamController {
|
|
|
@Autowired
|
|
|
private IFileService fileService;
|
|
|
|
|
|
- @Autowired
|
|
|
- private IMediaDirService dirService;
|
|
|
|
|
|
/**
|
|
|
* 上游系统获取设备列表信息
|
|
|
@@ -48,8 +44,9 @@ public class UpstreamController {
|
|
|
*/
|
|
|
@GetMapping("/devicesList")
|
|
|
public HttpResultResponse<List<UpstreamDeviceDTO>> getDevicesList(String searchInfo,
|
|
|
- Integer status) {
|
|
|
- List<UpstreamDeviceDTO> devices = deviceService.selUpstreamDeviceList(searchInfo, status);
|
|
|
+ Integer status,
|
|
|
+ String workspaceId) {
|
|
|
+ List<UpstreamDeviceDTO> devices = deviceService.selUpstreamDeviceList(searchInfo, status,workspaceId);
|
|
|
return HttpResultResponse.success(devices);
|
|
|
}
|
|
|
|
|
|
@@ -65,8 +62,9 @@ public class UpstreamController {
|
|
|
@RequestParam(name = "page_size", defaultValue = "10") Long pageSize,
|
|
|
String workspaceName,
|
|
|
Long startTime,
|
|
|
- Long endTime ) {
|
|
|
- PaginationData<UpstreamMediaFileDTO> filesList = fileService.getMediaFilesPagination(workspaceName, startTime,endTime, page, pageSize);
|
|
|
+ Long endTime,
|
|
|
+ String workspaceId) {
|
|
|
+ PaginationData<UpstreamMediaFileDTO> filesList = fileService.getMediaFilesPagination(workspaceName, startTime,endTime, page, pageSize,workspaceId);
|
|
|
return HttpResultResponse.success(filesList);
|
|
|
}
|
|
|
|
|
|
@@ -78,8 +76,9 @@ public class UpstreamController {
|
|
|
*/
|
|
|
@GetMapping("/webRtc")
|
|
|
public HttpResultResponse<List<UpstreamLivestreamUrlDTO>> getWebRtc(String payload,
|
|
|
- String deviceSn) {
|
|
|
- List<UpstreamLivestreamUrlDTO> url = livestreamUrlService.selWebRtc(payload, deviceSn);
|
|
|
+ String deviceSn,
|
|
|
+ String workspaceId) {
|
|
|
+ List<UpstreamLivestreamUrlDTO> url = livestreamUrlService.selWebRtc(payload, deviceSn,workspaceId);
|
|
|
return HttpResultResponse.success(url);
|
|
|
}
|
|
|
|
|
|
@@ -91,8 +90,9 @@ public class UpstreamController {
|
|
|
*/
|
|
|
@GetMapping("/devicesDetailList")
|
|
|
public HttpResultResponse<List<UpstreamDeviceDetailDTO>> getDevicesDetailList(String searchInfo,
|
|
|
- Integer status) {
|
|
|
- List<UpstreamDeviceDetailDTO> devices = deviceService.selUpstreamDeviceDetailList(searchInfo, status);
|
|
|
+ Integer status,
|
|
|
+ String workspaceId) {
|
|
|
+ List<UpstreamDeviceDetailDTO> devices = deviceService.selUpstreamDeviceDetailList(searchInfo, status,workspaceId);
|
|
|
return HttpResultResponse.success(devices);
|
|
|
}
|
|
|
|