index.ts 907 B

12345678910111213141516171819202122232425262728293031323334353637
  1. import request from '@/config/axios'
  2. export interface MailLogVO {
  3. id: number
  4. userId: number
  5. userType: number
  6. toMails: string[]
  7. ccMails?: string[]
  8. bccMails?: string[]
  9. accountId: number
  10. fromMail: string
  11. templateId: number
  12. templateCode: string
  13. templateNickname: string
  14. templateTitle: string
  15. templateContent: string
  16. templateParams: string
  17. sendStatus: number
  18. sendTime: Date
  19. sendMessageId: string
  20. sendException: string
  21. }
  22. // 查询邮件日志列表
  23. export const getMailLogPage = async (params: PageParam) => {
  24. return await request.get({ url: '/system/mail-log/page', params })
  25. }
  26. // 查询邮件日志详情
  27. export const getMailLog = async (id: number) => {
  28. return await request.get({ url: '/system/mail-log/get?id=' + id })
  29. }
  30. // 导出邮件日志
  31. export const exportMailLog = (params) => {
  32. return request.download({ url: '/system/mail-log/export-excel', params })
  33. }