Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
e32410b9
authored
Apr 27, 2026
by
YeYuheng
Committed by
GitHub
Apr 27, 2026
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
api_dataset_error (#6828)
parent
354bc972
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
packages/global/core/dataset/apiDataset/type.ts
+1
-2
packages/global/openapi/core/dataset/apiDataset/api.ts
+3
-4
No files found.
packages/global/core/dataset/apiDataset/type.ts
View file @
e32410b9
import
{
ParentIdSchema
}
from
'../../../common/parentFolder/type'
;
import
z
from
'zod'
;
import
z
from
'zod'
;
export
const
APIFileItemSchema
=
z
.
object
({
export
const
APIFileItemSchema
=
z
.
object
({
id
:
z
.
string
(),
id
:
z
.
string
(),
rawId
:
z
.
string
(),
rawId
:
z
.
string
(),
parentId
:
ParentIdSchema
,
parentId
:
z
.
string
().
nullish
()
,
name
:
z
.
string
(),
name
:
z
.
string
(),
type
:
z
.
enum
([
'file'
,
'folder'
]),
type
:
z
.
enum
([
'file'
,
'folder'
]),
updateTime
:
z
.
coerce
.
date
(),
updateTime
:
z
.
coerce
.
date
(),
...
...
packages/global/openapi/core/dataset/apiDataset/api.ts
View file @
e32410b9
import
{
z
}
from
'zod'
;
import
{
z
}
from
'zod'
;
import
{
ObjectIdSchema
}
from
'../../../../common/type/mongo'
;
import
{
ObjectIdSchema
}
from
'../../../../common/type/mongo'
;
import
{
ParentIdSchema
}
from
'../../../../common/parentFolder/type'
;
import
{
import
{
APIFileItemSchema
,
APIFileItemSchema
,
ApiDatasetServerSchema
ApiDatasetServerSchema
...
@@ -15,7 +14,7 @@ export const GetApiDatasetCatalogBodySchema = z.object({
...
@@ -15,7 +14,7 @@ export const GetApiDatasetCatalogBodySchema = z.object({
example
:
'产品文档'
,
example
:
'产品文档'
,
description
:
'搜索关键词'
description
:
'搜索关键词'
}),
}),
parentId
:
ParentIdSchema
.
meta
({
parentId
:
z
.
string
().
nullish
()
.
meta
({
example
:
'68ad85a7463006c963799a05'
,
example
:
'68ad85a7463006c963799a05'
,
description
:
'父级节点 ID,不传或 null 表示根目录'
description
:
'父级节点 ID,不传或 null 表示根目录'
}),
}),
...
@@ -39,7 +38,7 @@ export const GetApiDatasetPathNamesBodySchema = z.object({
...
@@ -39,7 +38,7 @@ export const GetApiDatasetPathNamesBodySchema = z.object({
example
:
'68ad85a7463006c963799a05'
,
example
:
'68ad85a7463006c963799a05'
,
description
:
'知识库 ID,传入时从知识库配置中读取 apiDatasetServer'
description
:
'知识库 ID,传入时从知识库配置中读取 apiDatasetServer'
}),
}),
parentId
:
ParentIdSchema
.
meta
({
parentId
:
z
.
string
().
nullish
()
.
meta
({
example
:
'68ad85a7463006c963799a05'
,
example
:
'68ad85a7463006c963799a05'
,
description
:
'当前节点 ID,不传或 null 时返回空字符串'
description
:
'当前节点 ID,不传或 null 时返回空字符串'
}),
}),
...
@@ -68,7 +67,7 @@ export const GetApiDatasetFileListBodySchema = z.object({
...
@@ -68,7 +67,7 @@ export const GetApiDatasetFileListBodySchema = z.object({
example
:
'产品文档'
,
example
:
'产品文档'
,
description
:
'搜索关键词'
description
:
'搜索关键词'
}),
}),
parentId
:
ParentIdSchema
.
meta
({
parentId
:
z
.
string
().
nullish
()
.
meta
({
example
:
'68ad85a7463006c963799a05'
,
example
:
'68ad85a7463006c963799a05'
,
description
:
'父级节点 ID,不传或 null 表示根目录'
description
:
'父级节点 ID,不传或 null 表示根目录'
})
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment