index.ts 928 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. export interface MailLogPageReqVO extends PageParam {
  21. userId?: number
  22. userType?: number
  23. toMail?: string
  24. accountId?: number
  25. templateId?: number
  26. sendStatus?: number
  27. sendTime?: Date[]
  28. }
  29. // 查询邮件日志列表
  30. export const getMailLogPageApi = async (params: MailLogPageReqVO) => {
  31. return await request.get({ url: '/system/mail-log/page', params })
  32. }
  33. // 查询邮件日志详情
  34. export const getMailLogApi = async (id: number) => {
  35. return await request.get({ url: '/system/mail-log/get?id=' + id })
  36. }