From 4d0c2a01b25c3bd4371738ee2d3833e82478620d Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期五, 16 八月 2024 18:14:56 +0800
Subject: [PATCH] 最新版本
---
server/visits/dmvisit_service/src/main/java/com/doumee/core/haikang/model/HKTools.java | 95 +++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 94 insertions(+), 1 deletions(-)
diff --git a/server/visits/dmvisit_service/src/main/java/com/doumee/core/haikang/model/HKTools.java b/server/visits/dmvisit_service/src/main/java/com/doumee/core/haikang/model/HKTools.java
index 298e6b2..019195d 100644
--- a/server/visits/dmvisit_service/src/main/java/com/doumee/core/haikang/model/HKTools.java
+++ b/server/visits/dmvisit_service/src/main/java/com/doumee/core/haikang/model/HKTools.java
@@ -10,6 +10,7 @@
import com.hikvision.artemis.sdk.ArtemisHttpUtil;
import com.hikvision.artemis.sdk.config.ArtemisConfig;
import lombok.extern.slf4j.Slf4j;
+import org.apache.commons.lang3.StringUtils;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.tomcat.util.bcel.Const;
@@ -324,7 +325,7 @@
* @return
*/
public static String acsDeviceTimeRangeList(String body) {
- return startDoPostStringArtemis(HKConstants.InterfacePath.acsDeviceList,body);
+ return startDoPostStringArtemis(HKConstants.InterfacePath.acsDeviceTimeRangeList,body);
}
/**
* 璁垮棰勭害
@@ -357,6 +358,14 @@
Map<String, String> header = new HashMap<>();
header.put("tagId", UUID.randomUUID().toString().replace("-", ""));
String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", header);// post璇锋眰application/json绫诲瀷鍙傛暟
+ saveInterfaceLog(body,result,path);
+ return result;
+
+ }
+ public static String startDoPostStringArtemis(String pathStr,Map<String, String> querys,Map<String, String> header,String body){
+ Map<String, String> path = getPath(pathStr);
+ header.put("tagId", UUID.randomUUID().toString().replace("-", ""));
+ String result = ArtemisHttpUtil.doPostStringArtemis(path, body, querys, null, "application/json", header);// post璇锋眰application/json绫诲瀷鍙傛暟
saveInterfaceLog(body,result,path);
return result;
@@ -583,6 +592,73 @@
public static String acsDeviceStatus(String body) {
return startDoPostStringArtemis(HKConstants.InterfacePath.acsDeviceStatus,body);
}
+ /**
+ * 鍒嗛〉鑾峰彇骞挎挱鐐�
+ * @param body
+ * @return
+ */
+ public static String fetchAudioChannel(String body) {
+ return startDoPostStringArtemis(HKConstants.InterfacePath.fetchAudioChannel,body);
+ }
+ /**
+ * 鍒嗛〉鑾峰彇骞挎挱璁惧鍒楄〃
+ * @param body
+ * @return
+ */
+ public static String fetchAudioDevice(String body) {
+ return startDoPostStringArtemis(HKConstants.InterfacePath.fetchAudioDevice,body);
+ }
+ /**
+ * 鏍规嵁璁惧淇℃伅鑾峰彇骞挎挱鐐�
+ * @param body
+ * @return
+ */
+ public static String fetchAudioChannelByDevice(String body) {
+ return startDoPostStringArtemis(HKConstants.InterfacePath.fetchAudioChannelByDevice,body);
+ }
+ /**
+ * 鑾峰彇鍏ㄩ儴鏈堝彴淇℃伅
+ * @param body
+ * @return
+ */
+ public static String platformsList(String body) {
+ return startDoPostStringArtemis(HKConstants.InterfacePath.platformsList,body);
+ }
+ /**
+ * 鑾峰彇鏈堝彴鐘舵��
+ * @return
+ */
+ public static String platformStatus(String param) {
+ if(StringUtils.isNotBlank(param)){
+ return startDoPostStringArtemis(HKConstants.InterfacePath.platformStatus+"?platformIds="+param,null);
+ }else{
+ return startDoPostStringArtemis(HKConstants.InterfacePath.platformStatus,null);
+ }
+ }
+ /**
+ * 鑾峰彇鏈堝彴缁勪欢閰嶇疆鐨凩ED璁惧娓呭崟
+ * @param body
+ * @return
+ */
+ public static String ledRecords(String body) {
+ return startDoPostStringArtemis(HKConstants.InterfacePath.ledRecords,body);
+ }
+ /**
+ * 鐢ㄤ簬璁剧疆骞挎挱鐨勮嚜瀹氭挱鏀惧拰鍋滄
+ * @param body
+ * @return
+ */
+ public static String customBroadcast(String body) {
+ return startDoPostStringArtemis(HKConstants.InterfacePath.customBroadcast,body);
+ }
+ /**
+ * 鍙戦�佹秷鎭粰LED
+ * @param body
+ * @return
+ */
+ public static String transparentchannel(Map<String,String> header,String body) {
+ return startDoPostStringArtemis(HKConstants.InterfacePath.transparentchannel,null,header,body);
+ }
/**
* 鏌ヨ鍦哄唴杞﹀仠杞︿俊鎭�
@@ -593,4 +669,21 @@
return startDoPostStringArtemis(HKConstants.InterfacePath.tempCarInRecords,body);
}
+ /**
+ * 鏍规嵁鐢ㄦ埛鏍囪瘑鑾峰彇瀹㈡埛绔疶GC鎺ュ彛
+ * @param body
+ * @return
+ */
+ public static String applyCTGT(String body) {
+ return startDoPostStringArtemis(HKConstants.InterfacePath.applyCTGT,body);
+ }
+ /**
+ * 鏍规嵁鐧诲綍鏍囪瘑TGC鐢宠鐧诲綍鍑瘉ST鎺ュ彛
+ * @param body
+ * @return
+ */
+ public static String applyST(String body) {
+ return startDoPostStringArtemis(HKConstants.InterfacePath.applyST,body);
+ }
+
}
--
Gitblit v1.9.3