index.ts 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. export interface SmsLogPageReqVO extends PageParam {
  30. channelId?: number | null
  31. templateId?: number | null
  32. mobile?: string
  33. sendStatus?: number | null
  34. sendTime?: Date[]
  35. receiveStatus?: number | null
  36. receiveTime?: Date[]
  37. }
  38. export interface SmsLogExportReqVO {
  39. channelId?: number
  40. templateId?: number
  41. mobile?: string
  42. sendStatus?: number
  43. sendTime?: Date[]
  44. receiveStatus?: number
  45. receiveTime?: Date[]
  46. }
  47. // 查询短信日志列表
  48. export const getSmsLogPageApi = (params: SmsLogPageReqVO) => {
  49. return request.get({ url: '/system/sms-log/page', params })
  50. }
  51. // 导出短信日志
  52. export const exportSmsLogApi = (params: SmsLogExportReqVO) => {
  53. return request.download({ url: '/system/sms-log/export-excel', params })
  54. }