mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-27 00:17:31 +00:00
v4.5.2 (#439)
This commit is contained in:
28
packages/global/core/plugin/constants.ts
Normal file
28
packages/global/core/plugin/constants.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
import { ModuleItemType } from '../module/type';
|
||||
|
||||
export const defaultModules: ModuleItemType[] = [
|
||||
{
|
||||
moduleId: 'fph4s3',
|
||||
name: '自定义输出',
|
||||
flowType: 'pluginOutput',
|
||||
showStatus: false,
|
||||
position: {
|
||||
x: 994.1266684738011,
|
||||
y: -45.87689365278443
|
||||
},
|
||||
inputs: [],
|
||||
outputs: []
|
||||
},
|
||||
{
|
||||
moduleId: 'w09v30',
|
||||
name: '自定义输入',
|
||||
flowType: 'pluginInput',
|
||||
showStatus: false,
|
||||
position: {
|
||||
x: 457.57860319995154,
|
||||
y: -44.25099042468186
|
||||
},
|
||||
inputs: [],
|
||||
outputs: []
|
||||
}
|
||||
];
|
21
packages/global/core/plugin/controller.d.ts
vendored
Normal file
21
packages/global/core/plugin/controller.d.ts
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
import type { ModuleItemType } from '../module/type.d';
|
||||
|
||||
export type CreateOnePluginParams = {
|
||||
name: string;
|
||||
avatar: string;
|
||||
intro: string;
|
||||
modules?: ModuleItemType[];
|
||||
};
|
||||
export type UpdatePluginParams = {
|
||||
id: string;
|
||||
name?: string;
|
||||
avatar?: string;
|
||||
intro?: string;
|
||||
modules?: ModuleItemType[];
|
||||
};
|
||||
export type PluginListItemType = {
|
||||
_id: string;
|
||||
name: string;
|
||||
avatar: string;
|
||||
intro: string;
|
||||
};
|
11
packages/global/core/plugin/type.d.ts
vendored
Normal file
11
packages/global/core/plugin/type.d.ts
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
import type { ModuleItemType } from '../module/type.d';
|
||||
|
||||
export type PluginItemSchema = {
|
||||
_id: string;
|
||||
userId: string;
|
||||
name: string;
|
||||
avatar: string;
|
||||
intro: string;
|
||||
updateTime: Date;
|
||||
modules: ModuleItemType[];
|
||||
};
|
Reference in New Issue
Block a user