From 2dc1202d0414a602d3c24b0e5cab6ea89096289a Mon Sep 17 00:00:00 2001
From: ranke <213539@qq.com>
Date: Fri, 23 Jan 2026 16:52:50 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0databus-client=E4=BD=BF?=
=?UTF-8?q?=E7=94=A8=E8=AF=B4=E6=98=8E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
docs/databus-client使用说明.md | 31 +++++++++++++++++++
.../zt-module-databus-client/pom.xml | 2 +-
.../module/databus/client/DatabusClient.java | 1 -
3 files changed, 32 insertions(+), 2 deletions(-)
create mode 100644 docs/databus-client使用说明.md
diff --git a/docs/databus-client使用说明.md b/docs/databus-client使用说明.md
new file mode 100644
index 00000000..c6eb7b1e
--- /dev/null
+++ b/docs/databus-client使用说明.md
@@ -0,0 +1,31 @@
+# Databus Client 使用说明
+
+databus client 最主要用于调用基于http协议的第三方接口时需要记录调用日志到 databus 的情况, 通过databus client 调用第三方接口会将调用日志记录到databus的访问日志中
+
+# 使用方法
+1. 添加依赖:
+```xml
+
+ com.zt.plat
+ zt-module-databus-client
+ 3.0.47-SNAPSHOT
+
+```
+2. 注入 DatabusClient
+```java
+@Resource
+private DatabusClient databusClient;
+```
+3. 方法说明
+ * get(...) : 发送 get 请求
+ * post(...): 发送 post 请求
+ * put(...): 发送 put 请求
+ * delete(...): 发送 delete 请求
+ * doRequest(...): 发送自定义请求
+4. 方法参数说明(由于所有方法参数都是一样的,所以在此统一说明)
+ * String urlString: 请求的 http 接口地址(get/delete请求不需要带url参数)
+ * Map data: 请求的参数(post/put方法会转换为json提交, get/delete会拼接到url上)
+ * Map headers: 请求头信息
+ * String appId: databus 的appid
+ * String authToken: databus 的访问令牌
+ * Method method: doRequest 方法独有,如果要使用 get/post/put/delete 之外的方法,请使用doRequest方法并通过method参数指定
diff --git a/zt-module-databus/zt-module-databus-client/pom.xml b/zt-module-databus/zt-module-databus-client/pom.xml
index a8abc82f..4ee8c93f 100644
--- a/zt-module-databus/zt-module-databus-client/pom.xml
+++ b/zt-module-databus/zt-module-databus-client/pom.xml
@@ -8,7 +8,7 @@
com.zt.plat
${revision}
- zt-module-databus-server-client
+ zt-module-databus-client
jar
${project.artifactId}
diff --git a/zt-module-databus/zt-module-databus-client/src/main/java/com/zt/plat/module/databus/client/DatabusClient.java b/zt-module-databus/zt-module-databus-client/src/main/java/com/zt/plat/module/databus/client/DatabusClient.java
index ad921ceb..0954ef21 100644
--- a/zt-module-databus/zt-module-databus-client/src/main/java/com/zt/plat/module/databus/client/DatabusClient.java
+++ b/zt-module-databus/zt-module-databus-client/src/main/java/com/zt/plat/module/databus/client/DatabusClient.java
@@ -7,7 +7,6 @@ import cn.hutool.http.Method;
import cn.hutool.json.JSONObject;
import cn.hutool.json.JSONUtil;
import com.zt.plat.framework.common.pojo.CommonResult;
-import com.zt.plat.framework.common.util.security.CryptoSignatureUtils;
import com.zt.plat.module.databus.api.dto.ApiAccessLogCreateReq;
import com.zt.plat.module.databus.api.provider.DatabusAccessLogProviderApi;
import jakarta.annotation.Resource;