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

This commit is contained in:
YunaiV
2025-08-05 21:12:33 +08:00
parent 0926c69781
commit ff7beb6db2
5 changed files with 94 additions and 20 deletions

View File

@ -4,7 +4,9 @@ export interface MailLogVO {
id: number
userId: number
userType: number
toMail: string
toMails: string[]
ccMails?: string[]
bccMails?: string[]
accountId: number
fromMail: string
templateId: number

View File

@ -14,7 +14,9 @@ export interface MailTemplateVO {
}
export interface MailSendReqVO {
mail: string
toMails: string[]
ccMails?: string[]
bccMails?: string[]
templateCode: string
templateParams: Map<String, Object>
}
@ -46,7 +48,10 @@ export const deleteMailTemplate = async (id: number) => {
// 批量删除邮件模版
export const deleteMailTemplateList = async (ids: number[]) => {
return await request.delete({ url: '/system/mail-template/delete-list', params: { ids: ids.join(',') } })
return await request.delete({
url: '/system/mail-template/delete-list',
params: { ids: ids.join(',') }
})
}
// 发送邮件