|
|
@ -2,7 +2,9 @@ package com.storeroom.modules.device.controller; |
|
|
|
|
|
|
|
|
|
|
|
import com.storeroom.annotaion.rest.AnonymousGetMapping; |
|
|
|
import com.storeroom.modules.device.service.CameraInfoService; |
|
|
|
import com.storeroom.modules.device.service.VideoMonitoringService; |
|
|
|
import com.storeroom.modules.device.service.dto.CameraInfoCrieria; |
|
|
|
import com.storeroom.modules.device.service.dto.VideoMonitoringCrieria; |
|
|
|
import com.storeroom.utils.ApiResponse; |
|
|
|
import io.swagger.annotations.Api; |
|
|
@ -15,14 +17,17 @@ import org.springframework.web.bind.annotation.RestController; |
|
|
|
@RestController |
|
|
|
@RequiredArgsConstructor |
|
|
|
@Api(tags = "视频监控") |
|
|
|
@RequestMapping("/api/videomonitorng/") |
|
|
|
public class VideoMonitoringController { |
|
|
|
@RequestMapping("/api/videos/") |
|
|
|
public class VideosController { |
|
|
|
|
|
|
|
private final VideoMonitoringService videoMonitoringService; |
|
|
|
|
|
|
|
private final CameraInfoService cameraInfoService; |
|
|
|
|
|
|
|
@ApiOperation("视频监控列表") |
|
|
|
@AnonymousGetMapping("list") |
|
|
|
public ApiResponse<Object> getList(VideoMonitoringCrieria crieria, Pageable pageable) { |
|
|
|
return ApiResponse.success(videoMonitoringService.queryAll(crieria, pageable)); |
|
|
|
public ApiResponse<Object> getList(CameraInfoCrieria crieria, Pageable pageable) { |
|
|
|
return ApiResponse.success(cameraInfoService.queryAll(crieria, pageable)); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |