mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-19 10:07:24 +00:00
Feat: App folder and permission (#1726)
* app folder * feat: app foldere * fix: run app param error * perf: select app ux * perf: folder rerender * fix: ts * fix: parentId * fix: permission * perf: loading ux * perf: per select ux * perf: clb context * perf: query extension tip * fix: ts * perf: app detail per * perf: default per
This commit is contained in:
14
projects/app/src/global/core/app/api.d.ts
vendored
14
projects/app/src/global/core/app/api.d.ts
vendored
@@ -1,17 +1,11 @@
|
||||
import { ParentIdType } from '@fastgpt/global/common/parentFolder/type';
|
||||
import { AppTypeEnum } from '@fastgpt/global/core/app/constants';
|
||||
import { AppSchema } from '@fastgpt/global/core/app/type';
|
||||
|
||||
export type CreateAppParams = {
|
||||
name?: string;
|
||||
avatar?: string;
|
||||
type?: `${AppTypeEnum}`;
|
||||
modules: AppSchema['modules'];
|
||||
edges?: AppSchema['edges'];
|
||||
};
|
||||
|
||||
export type AppUpdateParams = {
|
||||
parentId?: ParentIdType;
|
||||
name?: string;
|
||||
type?: `${AppTypeEnum}`;
|
||||
type?: AppTypeEnum;
|
||||
avatar?: string;
|
||||
intro?: string;
|
||||
nodes?: AppSchema['modules'];
|
||||
@@ -23,7 +17,7 @@ export type AppUpdateParams = {
|
||||
};
|
||||
|
||||
export type PostPublishAppProps = {
|
||||
type: `${AppTypeEnum}`;
|
||||
type: AppTypeEnum;
|
||||
nodes: AppSchema['modules'];
|
||||
edges: AppSchema['edges'];
|
||||
chatConfig: AppSchema['chatConfig'];
|
||||
|
@@ -72,7 +72,7 @@ export type SearchTestResponse = {
|
||||
searchMode: `${DatasetSearchModeEnum}`;
|
||||
usingReRank: boolean;
|
||||
similarity: number;
|
||||
usingQueryExtension: boolean;
|
||||
queryExtensionModel?: string;
|
||||
};
|
||||
|
||||
/* =========== training =========== */
|
||||
|
Reference in New Issue
Block a user