index.ts 942 B

12345678910111213141516171819202122232425262728293031323334353637
  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. apiSendCode: string
  18. apiSendMsg: string
  19. apiRequestId: string
  20. apiSerialNo: string
  21. receiveStatus: number | null
  22. receiveTime: Date | null
  23. apiReceiveCode: string
  24. apiReceiveMsg: string
  25. createTime: Date | null
  26. }
  27. // 查询短信日志列表
  28. export const getSmsLogPage = (params: PageParam) => {
  29. return request.get({ url: '/system/sms-log/page', params })
  30. }
  31. // 导出短信日志
  32. export const exportSmsLog = (params) => {
  33. return request.download({ url: '/system/sms-log/export-excel', params })
  34. }