Files
certd/packages/ui/certd-server/src/plugins/plugin-template/api.ts
T

16 lines
308 B
TypeScript
Raw Normal View History

2025-12-12 23:39:09 +08:00
export type BuildContentReq = {
2026-05-31 01:41:33 +08:00
data: any;
};
2025-12-12 23:39:09 +08:00
2026-05-31 01:41:33 +08:00
export interface ITemplateProvider<T = any> {
buildContent: (params: BuildContentReq) => Promise<T>;
2025-12-14 01:36:20 +08:00
2026-05-31 01:41:33 +08:00
buildDefaultContent: (params: BuildContentReq) => Promise<T>;
2025-12-14 01:36:20 +08:00
}
export type EmailContent = {
2026-05-31 01:41:33 +08:00
subject: string;
content?: string;
html?: string;
2025-12-14 01:36:20 +08:00
};