Merge branch 'refs/heads/zt-test' into test
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -61,6 +61,7 @@ package-lock.json
|
|||||||
# visual studio code
|
# visual studio code
|
||||||
.history
|
.history
|
||||||
*.log
|
*.log
|
||||||
|
logs/**
|
||||||
|
|
||||||
functions/mock
|
functions/mock
|
||||||
.temp/**
|
.temp/**
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
namespace: ns-d6a0e78ebd674c279614498e4c57b133
|
namespace: ns-f16a3067ca7b434aad127d15eac82503
|
||||||
name: zt-module-databus
|
name: zt-module-databus
|
||||||
labels:
|
labels:
|
||||||
app: zt-module-databus
|
app: zt-module-databus
|
||||||
@@ -19,7 +19,7 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
app: zt-module-databus
|
app: zt-module-databus
|
||||||
spec:
|
spec:
|
||||||
dnsPolicy: None
|
dnsPolicy: ClusterFirst
|
||||||
dnsConfig:
|
dnsConfig:
|
||||||
nameservers:
|
nameservers:
|
||||||
- "172.16.36.16"
|
- "172.16.36.16"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
namespace: ns-d6a0e78ebd674c279614498e4c57b133
|
namespace: ns-f16a3067ca7b434aad127d15eac82503
|
||||||
name: zt-gateway
|
name: zt-gateway
|
||||||
labels:
|
labels:
|
||||||
app: zt-gateway
|
app: zt-gateway
|
||||||
@@ -61,7 +61,7 @@ spec:
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
namespace: ns-d6a0e78ebd674c279614498e4c57b133
|
namespace: ns-f16a3067ca7b434aad127d15eac82503
|
||||||
name: zt-gateway
|
name: zt-gateway
|
||||||
spec:
|
spec:
|
||||||
type: NodePort
|
type: NodePort
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
namespace: ns-d6a0e78ebd674c279614498e4c57b133
|
namespace: ns-f16a3067ca7b434aad127d15eac82503
|
||||||
name: zt-module-infra
|
name: zt-module-infra
|
||||||
labels:
|
labels:
|
||||||
app: zt-module-infra
|
app: zt-module-infra
|
||||||
@@ -19,7 +19,7 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
app: zt-module-infra
|
app: zt-module-infra
|
||||||
spec:
|
spec:
|
||||||
dnsPolicy: None
|
dnsPolicy: ClusterFirst
|
||||||
dnsConfig:
|
dnsConfig:
|
||||||
nameservers:
|
nameservers:
|
||||||
- "172.16.36.16"
|
- "172.16.36.16"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
namespace: ns-d6a0e78ebd674c279614498e4c57b133
|
namespace: ns-f16a3067ca7b434aad127d15eac82503
|
||||||
name: zt-module-system
|
name: zt-module-system
|
||||||
labels:
|
labels:
|
||||||
app: zt-module-system
|
app: zt-module-system
|
||||||
@@ -28,7 +28,7 @@ spec:
|
|||||||
operator: In
|
operator: In
|
||||||
values:
|
values:
|
||||||
- node-3
|
- node-3
|
||||||
dnsPolicy: None
|
dnsPolicy: ClusterFirst
|
||||||
dnsConfig:
|
dnsConfig:
|
||||||
nameservers:
|
nameservers:
|
||||||
- "172.16.36.16"
|
- "172.16.36.16"
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
31
docs/databus-client使用说明.md
Normal file
31
docs/databus-client使用说明.md
Normal 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
BIN
docs/iwork 人力资源组织机构RESTFUL接口说明.pdf
Normal file
BIN
docs/iwork 人力资源组织机构RESTFUL接口说明.pdf
Normal file
Binary file not shown.
202
docs/数据总线用户使用指南.md
Normal file
202
docs/数据总线用户使用指南.md
Normal file
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
Reference in New Issue
Block a user