|
|
|
|
@ -2,7 +2,9 @@ package com.zhehekeji.web.controller;
|
|
|
|
|
|
|
|
|
|
import com.zhehekeji.core.pojo.Result;
|
|
|
|
|
import com.zhehekeji.web.config.ConfigProperties;
|
|
|
|
|
import com.zhehekeji.web.entity.Camera;
|
|
|
|
|
import com.zhehekeji.web.pojo.realTime.RealTime;
|
|
|
|
|
import com.zhehekeji.web.service.CameraService;
|
|
|
|
|
import com.zhehekeji.web.service.RealTimeService;
|
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
|
@ -20,6 +22,8 @@ public class RealTimeController {
|
|
|
|
|
private RealTimeService realTimeService;
|
|
|
|
|
@Resource
|
|
|
|
|
private ConfigProperties configProperties;
|
|
|
|
|
@Resource
|
|
|
|
|
private CameraService cameraService;
|
|
|
|
|
|
|
|
|
|
@PostMapping("")
|
|
|
|
|
@ApiOperation(value = "实时列表")
|
|
|
|
|
@ -28,6 +32,13 @@ public class RealTimeController {
|
|
|
|
|
return Result.success(realTimeService.realTimes());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GetMapping("/allCameras")
|
|
|
|
|
@ApiOperation(value = "全部球机")
|
|
|
|
|
//@SessionHandler
|
|
|
|
|
public Result<List<Camera>> allCameras() {
|
|
|
|
|
return Result.success(cameraService.allCameras());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GetMapping("/videoServer")
|
|
|
|
|
@ApiOperation(value = "视频服务器地址")
|
|
|
|
|
public Result<String> getVideoServer(){
|
|
|
|
|
|