fix api_dataset.md (#4791) (#4801)

Co-authored-by: dreamer6680 <1468683855@qq.com>
This commit is contained in:
Archer
2025-05-13 12:28:50 +08:00
committed by GitHub
parent d5f188a1a4
commit 398d131bac

View File

@@ -43,7 +43,7 @@ type ResponseType = {
// 文件列表中,单项的文件类型 // 文件列表中,单项的文件类型
type FileListItem = { type FileListItem = {
id: string; id: string;
parentId: string | null; parentId: string //也可能为 null 或者 undefined 类型;
name: string; name: string;
type: 'file' | 'folder'; type: 'file' | 'folder';
updateTime: Date; updateTime: Date;
@@ -59,7 +59,7 @@ type FileListItem = {
{{< markdownify >}} {{< markdownify >}}
{{% alert icon=" " context="success" %}} {{% alert icon=" " context="success" %}}
- parentId - 父级 id可选或者 null。 - parentId - 父级 id可选或者 null | undefined
- searchKey - 检索词,可选 - searchKey - 检索词,可选
{{% /alert %}} {{% /alert %}}
@@ -68,7 +68,7 @@ curl --location --request POST '{{baseURL}}/v1/file/list' \
--header 'Authorization: Bearer {{authorization}}' \ --header 'Authorization: Bearer {{authorization}}' \
--header 'Content-Type: application/json' \ --header 'Content-Type: application/json' \
--data-raw '{ --data-raw '{
"parentId": null, "parentId": "",
"searchKey": "" "searchKey": ""
}' }'
``` ```