feat:【system 系统功能】邮箱增加抄送、密送,支持多个

This commit is contained in:
YunaiV
2025-08-05 21:45:23 +08:00
parent 6d99bf3a46
commit 55061b73de
6 changed files with 103 additions and 28 deletions

View File

@@ -8,7 +8,9 @@ export namespace SystemMailLogApi {
id: number;
userId: number;
userType: number;
toMail: string;
toMails: string[];
ccMails?: string[];
bccMails?: string[];
accountId: number;
fromMail: string;
templateId: number;
@@ -32,15 +34,3 @@ export function getMailLogPage(params: PageParam) {
{ params },
);
}
/** 查询邮件日志详情 */
export function getMailLog(id: number) {
return requestClient.get<SystemMailLogApi.MailLog>(
`/system/mail-log/get?id=${id}`,
);
}
/** 重新发送邮件 */
export function resendMail(id: number) {
return requestClient.put(`/system/mail-log/resend?id=${id}`);
}

View File

@@ -20,7 +20,9 @@ export namespace SystemMailTemplateApi {
/** 邮件发送信息 */
export interface MailSendReq {
mail: string;
toMails: string[];
ccMails?: string[];
bccMails?: string[];
templateCode: string;
templateParams: Record<string, any>;
}