mirror of https://github.com/certd/certd
chore:
parent
5601bc4ab2
commit
6f8fe62087
|
@ -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;
|
||||
//用户上下文
|
||||
|
|
|
@ -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>;
|
||||
};
|
Loading…
Reference in New Issue