mirror of
https://github.com/certd/certd.git
synced 2026-04-03 14:10:54 +08:00
chore:
This commit is contained in:
@@ -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;
|
||||
//用户上下文
|
||||
|
||||
13
packages/core/pipeline/src/service/config.ts
Normal file
13
packages/core/pipeline/src/service/config.ts
Normal 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>;
|
||||
};
|
||||
Reference in New Issue
Block a user