|
|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
package com.zhehekeji.web.controller;
|
|
|
|
|
|
|
|
|
|
import com.zhehekeji.core.pojo.Result;
|
|
|
|
|
import com.zhehekeji.web.config.ConfigProperties;
|
|
|
|
|
import com.zhehekeji.web.pojo.realTime.RealTime;
|
|
|
|
|
import com.zhehekeji.web.service.RealTimeService;
|
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
|
@ -17,6 +18,8 @@ public class RealTimeController {
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
private RealTimeService realTimeService;
|
|
|
|
|
@Resource
|
|
|
|
|
private ConfigProperties configProperties;
|
|
|
|
|
|
|
|
|
|
@PostMapping("")
|
|
|
|
|
@ApiOperation(value = "实时列表")
|
|
|
|
|
@ -25,5 +28,11 @@ public class RealTimeController {
|
|
|
|
|
return Result.success(realTimeService.realTimes());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GetMapping("/videoServer")
|
|
|
|
|
@ApiOperation(value = "视频服务器地址")
|
|
|
|
|
public Result<String> getVideoServer(){
|
|
|
|
|
return Result.success(configProperties.getCameraConfig().getVideoServer());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|