mirror of
https://github.com/certd/certd.git
synced 2026-04-14 12:30:54 +08:00
20 lines
388 B
TypeScript
20 lines
388 B
TypeScript
export type EmailSend = {
|
|
subject: string;
|
|
receivers: string[];
|
|
content?: string;
|
|
attachments?: any[];
|
|
html?: string;
|
|
};
|
|
|
|
export type EmailSendByTemplateReq = {
|
|
type: string;
|
|
data: any;
|
|
receivers: string[];
|
|
attachments?: any[];
|
|
};
|
|
|
|
export interface IEmailService {
|
|
send(email: EmailSend): Promise<void>;
|
|
sendByTemplate(req: EmailSendByTemplateReq): Promise<void>;
|
|
}
|