mirror of
https://github.com/certd/certd.git
synced 2026-04-23 11:37:23 +08:00
perf: 支持邮件模版设置
This commit is contained in:
@@ -3,8 +3,16 @@ export type BuildContentReq = {
|
||||
data: any;
|
||||
}
|
||||
|
||||
export type BuildContentReply = Record<string, string>;
|
||||
|
||||
export interface ITemplateProvider {
|
||||
buildContent: (params: BuildContentReq) => Promise<BuildContentReply>;
|
||||
}
|
||||
export interface ITemplateProvider<T=any> {
|
||||
buildContent: (params: BuildContentReq) => Promise<T>;
|
||||
|
||||
buildDefaultContent:(params: BuildContentReq) => Promise<T>;
|
||||
}
|
||||
|
||||
|
||||
export type EmailContent = {
|
||||
subject:string,
|
||||
content?:string,
|
||||
html?:string
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user