Merge branch 'refs/heads/zt-test' into test

This commit is contained in:
FCL
2026-01-29 10:21:46 +08:00
177 changed files with 7175 additions and 397 deletions

1
.gitignore vendored
View File

@@ -61,6 +61,7 @@ package-lock.json
# visual studio code
.history
*.log
logs/**
functions/mock
.temp/**

View File

@@ -1,7 +1,7 @@
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: ns-d6a0e78ebd674c279614498e4c57b133
namespace: ns-f16a3067ca7b434aad127d15eac82503
name: zt-module-databus
labels:
app: zt-module-databus
@@ -19,7 +19,7 @@ spec:
labels:
app: zt-module-databus
spec:
dnsPolicy: None
dnsPolicy: ClusterFirst
dnsConfig:
nameservers:
- "172.16.36.16"

View File

@@ -1,7 +1,7 @@
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: ns-d6a0e78ebd674c279614498e4c57b133
namespace: ns-f16a3067ca7b434aad127d15eac82503
name: zt-gateway
labels:
app: zt-gateway
@@ -61,7 +61,7 @@ spec:
apiVersion: v1
kind: Service
metadata:
namespace: ns-d6a0e78ebd674c279614498e4c57b133
namespace: ns-f16a3067ca7b434aad127d15eac82503
name: zt-gateway
spec:
type: NodePort

View File

@@ -1,7 +1,7 @@
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: ns-d6a0e78ebd674c279614498e4c57b133
namespace: ns-f16a3067ca7b434aad127d15eac82503
name: zt-module-infra
labels:
app: zt-module-infra
@@ -19,7 +19,7 @@ spec:
labels:
app: zt-module-infra
spec:
dnsPolicy: None
dnsPolicy: ClusterFirst
dnsConfig:
nameservers:
- "172.16.36.16"

View File

@@ -1,7 +1,7 @@
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: ns-d6a0e78ebd674c279614498e4c57b133
namespace: ns-f16a3067ca7b434aad127d15eac82503
name: zt-module-system
labels:
app: zt-module-system
@@ -28,7 +28,7 @@ spec:
operator: In
values:
- node-3
dnsPolicy: None
dnsPolicy: ClusterFirst
dnsConfig:
nameservers:
- "172.16.36.16"

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,31 @@
# Databus Client 使用说明
databus client 最主要用于调用基于http协议的第三方接口时需要记录调用日志到 databus 的情况, 通过databus client 调用第三方接口会将调用日志记录到databus的访问日志中
# 使用方法
1. 添加依赖:
```xml
<dependency>
<groupId>com.zt.plat</groupId>
<artifactId>zt-module-databus-client</artifactId>
<version>3.0.47-SNAPSHOT</version>
</dependency>
```
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<String, Object> data: 请求的参数(post/put方法会转换为json提交, get/delete会拼接到url上)
* Map<String, String> headers: 请求头信息
* String appId: databus 的appid
* String authToken: databus 的访问令牌
* Method method: doRequest 方法独有,如果要使用 get/post/put/delete 之外的方法,请使用doRequest方法并通过method参数指定

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Some files were not shown because too many files have changed in this diff Show More