Skip to content
This repository has been archived by the owner on Aug 12, 2024. It is now read-only.

Commit

Permalink
enhanced file api
Browse files Browse the repository at this point in the history
  • Loading branch information
whitechi73 authored Feb 25, 2024
1 parent 23dfb4d commit 0d08dfb
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions docs/api/file.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,13 @@ icon: file
| 字段 | 类型 | 说明 |
| ------- | ------ | ------------ |
| user_id | int64 | 目标 |
| file | string | 本地文件路径 |
| file | string | `本地文件路径``文件base64``文件url` |
| name | string | 文件名称 |

::: warning 注意
本地文件路径为绝对路径,文件base64为`base64://`开头,文件url则应该是正确的http请求地址。
:::

### 响应

::: tabs
Expand Down Expand Up @@ -77,8 +81,12 @@ icon: file
| 字段 | 类型 | 说明 |
| -------- | ------ | ------------ |
| group_id | int64 | 群号 |
| file | string | 本地文件路径 |
| name | string | 文件名称 |
| file | string | `本地文件路径``文件base64``文件url` |
| name | string | 文件名称 |

::: warning 注意
本地文件路径为绝对路径,文件base64为`base64://`开头,文件url则应该是正确的http请求地址。
:::

### 响应

Expand Down

0 comments on commit 0d08dfb

Please sign in to comment.