From a1d7e81859f554f3a53680cc35f0f49bf1f77098 Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期四, 14 五月 2026 14:37:02 +0800
Subject: [PATCH] 导入项目

---
 src/api/system/mail/log/index.ts |   37 +++++++++++++++++++++++++++++++++++++
 1 files changed, 37 insertions(+), 0 deletions(-)

diff --git a/src/api/system/mail/log/index.ts b/src/api/system/mail/log/index.ts
new file mode 100644
index 0000000..409ced6
--- /dev/null
+++ b/src/api/system/mail/log/index.ts
@@ -0,0 +1,37 @@
+import request from '@/config/axios'
+
+export interface MailLogVO {
+  id: number
+  userId: number
+  userType: number
+  toMails: string[]
+  ccMails?: string[]
+  bccMails?: string[]
+  accountId: number
+  fromMail: string
+  templateId: number
+  templateCode: string
+  templateNickname: string
+  templateTitle: string
+  templateContent: string
+  templateParams: string
+  sendStatus: number
+  sendTime: Date
+  sendMessageId: string
+  sendException: string
+}
+
+// 鏌ヨ閭欢鏃ュ織鍒楄〃
+export const getMailLogPage = async (params: PageParam) => {
+  return await request.get({ url: '/system/mail-log/page', params })
+}
+
+// 鏌ヨ閭欢鏃ュ織璇︽儏
+export const getMailLog = async (id: number) => {
+  return await request.get({ url: '/system/mail-log/get?id=' + id })
+}
+
+// 瀵煎嚭閭欢鏃ュ織
+export const exportMailLog = (params) => {
+  return request.download({ url: '/system/mail-log/export-excel', params })
+}

--
Gitblit v1.8.0