|
@@ -1,5 +1,6 @@
|
|
|
package com.sooka.sponest.monitor.dahua.controller;
|
|
|
|
|
|
+import com.dahuatech.hutool.json.JSONObject;
|
|
|
import com.dahuatech.icc.exception.ClientException;
|
|
|
import com.ruoyi.common.core.domain.R;
|
|
|
import com.ruoyi.common.core.web.domain.AjaxResult;
|
|
@@ -19,6 +20,8 @@ import lombok.extern.slf4j.Slf4j;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
+import springfox.documentation.spring.web.json.Json;
|
|
|
+
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
@@ -65,6 +68,18 @@ public class DahuaController {
|
|
|
public String getTokenByPassword() {
|
|
|
return dahuaService.getTokenByPassword();
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 地视联动、三维定位接口
|
|
|
+ * 根据经纬度和通道编码计算PT角度和坐席位置
|
|
|
+ * */
|
|
|
+ @Log(title = "大华", businessType = BusinessType.OTHER)
|
|
|
+ @ApiOperation(value = "地视联动、三维定位计算", notes = "根据经纬度和通道编码计算PT角度和坐席位置")
|
|
|
+ @RequestMapping(value = "/calPTAngleAndSitPosition",method = POST)
|
|
|
+ public AjaxResult calPTAngleAndSitPosition(@RequestBody JSONObject json) {
|
|
|
+ return dahuaService.calPTAngleAndSitPosition(json);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* 订阅大华事件方法,更换icc服务后需要更改nacos配置
|