|
@@ -17,18 +17,18 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
public class CameraController {
|
|
|
|
|
|
@Autowired
|
|
|
- SecurityDeviceService service;
|
|
|
+ private SecurityDeviceService securityDeviceService;
|
|
|
|
|
|
@ApiOperation("海康平台--配置信息")
|
|
|
@PostMapping("/apiInfo")
|
|
|
- private ReturnMsg getApiInfo() {
|
|
|
- return service.getCameraApiInfo();
|
|
|
+ public ReturnMsg getApiInfo() {
|
|
|
+ return securityDeviceService.getCameraApiInfo();
|
|
|
}
|
|
|
|
|
|
@ApiOperation("海康平台--摄像头列表")
|
|
|
@PostMapping("/getCameras")
|
|
|
- private ReturnMsg getCameras() {
|
|
|
- return service.getAllCameras();
|
|
|
+ public ReturnMsg getCameras() {
|
|
|
+ return securityDeviceService.getAllCameras();
|
|
|
}
|
|
|
|
|
|
}
|