Files
chain33-dtalk/doc/gateway.md
2022-03-17 15:59:24 +08:00

96 lines
1.8 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#### 获取模块启用状态
URL: /app/modules/all
`post`
**请求参数:**
**返回参数:**
| **参数** | **名字** | **类型** | **说明** |
| ----------- | ------------ | -------- | ---------- |
| name | 模块名称 | string | 钱包模块wallet企业模块oa红包模块redpacket |
| isEnabled | 是否启用 | bool | |
| endPoints | 模块访问地址 | string | |
```json
{
"result": 0,
"message": "",
"data": [
{
"name": "wallet",
"isEnabled": true,
"endPoints": [
"https://172.16.101.126:8083"
]
},
{
"name": "oa",
"isEnabled": true,
"endPoints": [
"http://127.0.0.1"
]
}
]
}
```
#### 消息撤回
URL: /app/record/revoke
`post`
**请求参数:**
| **参数** | **名字** | **类型** | **约束** | **说明** |
| ----------- | ------------ | -------- | ---------- |---------- |
| type | 类型 | int | 必填 | 0->撤回私聊消息1->撤回群聊消息 |
| logId | 消息id | int64 | 必填| |
```json
{
"type": 0,
"logId": 0
}
```
**返回参数:**
```json
{
"result": 0,
"message": "",
"data": {}
}
```
#### 关注消息
URL: /app/record/focus
`post` `auth`
**请求参数:**
| **参数** | **名字** | **类型** | **约束** | **说明** |
| ----------- | ------------ | -------- | ---------- |---------- |
| type | 类型 | int | 必填 | 0->关注私聊消息1->关注群聊消息 |
| logId | 消息id | int64 | 必填| |
```json
{
"type": 0,
"logId": 0
}
```
**返回参数:**
```json
{
"result": 0,
"message": "",
"data": {}
}
```