index.ts 986 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. import request from '@/config/axios'
  2. export interface SmsLogVO {
  3. id: number | null
  4. channelId: number | null
  5. channelCode: string
  6. templateId: number | null
  7. templateCode: string
  8. templateType: number | null
  9. templateContent: string
  10. templateParams: Map<string, object> | null
  11. apiTemplateId: string
  12. mobile: string
  13. userId: number | null
  14. userType: number | null
  15. sendStatus: number | null
  16. sendTime: Date | null
  17. sendCode: number | null
  18. sendMsg: string
  19. apiSendCode: string
  20. apiSendMsg: string
  21. apiRequestId: string
  22. apiSerialNo: string
  23. receiveStatus: number | null
  24. receiveTime: Date | null
  25. apiReceiveCode: string
  26. apiReceiveMsg: string
  27. createTime: Date | null
  28. }
  29. // 查询短信日志列表
  30. export const getSmsLogPage = (params: PageParam) => {
  31. return request.get({ url: '/system/sms-log/page', params })
  32. }
  33. // 导出短信日志
  34. export const exportSmsLog = (params) => {
  35. return request.download({ url: '/system/sms-log/export-excel', params })
  36. }