mirror of
https://github.com/whitechi73/OpenShamrock.git
synced 2024-08-14 13:12:17 +08:00
enhanced file api
This commit is contained in:
parent
23dfb4d5d6
commit
0d08dfbac7
@ -24,9 +24,13 @@ icon: file
|
|||||||
| 字段 | 类型 | 说明 |
|
| 字段 | 类型 | 说明 |
|
||||||
| ------- | ------ | ------------ |
|
| ------- | ------ | ------------ |
|
||||||
| user_id | int64 | 目标 |
|
| user_id | int64 | 目标 |
|
||||||
| file | string | 本地文件路径 |
|
| file | string | `本地文件路径` 或 `文件base64` 或 `文件url` |
|
||||||
| name | string | 文件名称 |
|
| name | string | 文件名称 |
|
||||||
|
|
||||||
|
::: warning 注意
|
||||||
|
本地文件路径为绝对路径,文件base64为`base64://`开头,文件url则应该是正确的http请求地址。
|
||||||
|
:::
|
||||||
|
|
||||||
### 响应
|
### 响应
|
||||||
|
|
||||||
::: tabs
|
::: tabs
|
||||||
@ -77,9 +81,13 @@ icon: file
|
|||||||
| 字段 | 类型 | 说明 |
|
| 字段 | 类型 | 说明 |
|
||||||
| -------- | ------ | ------------ |
|
| -------- | ------ | ------------ |
|
||||||
| group_id | int64 | 群号 |
|
| group_id | int64 | 群号 |
|
||||||
| file | string | 本地文件路径 |
|
| file | string | `本地文件路径` 或 `文件base64` 或 `文件url` |
|
||||||
| name | string | 文件名称 |
|
| name | string | 文件名称 |
|
||||||
|
|
||||||
|
::: warning 注意
|
||||||
|
本地文件路径为绝对路径,文件base64为`base64://`开头,文件url则应该是正确的http请求地址。
|
||||||
|
:::
|
||||||
|
|
||||||
### 响应
|
### 响应
|
||||||
|
|
||||||
::: tabs
|
::: tabs
|
||||||
|
Loading…
x
Reference in New Issue
Block a user