Skip to content

Commit f9c9aea

Browse files
committed
Update file.md
1 parent f04a913 commit f9c9aea

1 file changed

Lines changed: 17 additions & 10 deletions

File tree

src/api/v1/file.md

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,26 @@ POST /v1/file/send
2121
{
2222
"userId": "123", // 目标用户ID
2323
"deviceId": "123", // 目标用户指定分享的设备ID,为空则为发送给目标用户的所有设备
24-
"fileData": "{}" // 文件分享数据,格式为json转义,以下为fileData转义部分格式
25-
// {
26-
// "path": "C:\\Windows\\test.exe", // 文件原始目录
27-
// "size": 5774088, // 文件大小
28-
// "name": "test.exe", // 文件名称
29-
// "isDirectory": 0, // 未知
30-
// "count": 1, // 未知
31-
// "current": 1, // 未知
32-
// "uuid": "123123123123123123" // 文件分享uuid,应该是随机的,可以随便写
33-
// }
24+
"fileData": "{}" // 文件分享数据,格式为json转义
3425
}
3526
```
3627

28+
::: fileData属性,json数据格式
29+
30+
```JSONC
31+
{
32+
"path": "C:\\Windows\\test.exe", // 文件原始目录
33+
"size": 5774088, // 文件大小
34+
"name": "test.exe", // 文件名称
35+
"isDirectory": 0, // 未知
36+
"count": 1, // 未知
37+
"current": 1, // 未知
38+
"uuid": "123123123123123123" // 文件分享uuid,应该是随机的,可以随便写
39+
}
40+
```
41+
42+
:::
43+
3744
响应体:
3845

3946
```JSONC

0 commit comments

Comments
 (0)