mirror of
https://github.com/certd/certd.git
synced 2026-05-18 06:17:31 +08:00
perf: 支持邮件模版设置
This commit is contained in:
@@ -6,6 +6,13 @@ export type EmailSend = {
|
||||
html?: string;
|
||||
};
|
||||
|
||||
export type EmailSendByTemplateReq = {
|
||||
type: string;
|
||||
data: any;
|
||||
email: { receivers: string[]; attachments?: any[] };
|
||||
};
|
||||
|
||||
export interface IEmailService {
|
||||
send(email: EmailSend): Promise<void>;
|
||||
sendByTemplate(req: EmailSendByTemplateReq): Promise<void>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user