pull/213/head
xiaojunnuo 2024-10-12 23:51:05 +08:00
parent 5601bc4ab2
commit 6f8fe62087
2 changed files with 16 additions and 0 deletions

View File

@ -9,6 +9,7 @@ import { ILogger, logger, utils } from "../utils/index.js";
import { HttpClient } from "../utils/index.js";
import dayjs from "dayjs";
import _ from "lodash-es";
import { IPluginConfigService } from "../service/config";
export type UserInfo = {
role: "admin" | "user";
id: any;
@ -72,6 +73,8 @@ export type TaskInstanceContext = {
emailService: IEmailService;
//cname记录服务
cnameProxyService: ICnameProxyService;
//插件配置服务
configService: IPluginConfigService;
//流水线上下文
pipelineContext: IContext;
//用户上下文

View File

@ -0,0 +1,13 @@
import { FormItemProps } from "../d.ts/index.js";
export type PluginConfig = {
show: false;
sysInput: {
[key: string]: {};
};
};
//插件配置服务
export type IPluginConfigService = {
getPluginConfig: (pluginName: string) => Promise<any>;
};