index.ts 717 B

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