2023-02-11 00:44:00 +08:00
|
|
|
import request from '@/config/axios'
|
|
|
|
|
|
|
|
export interface SmsLogVO {
|
2023-03-22 17:52:06 +08:00
|
|
|
id: number | null
|
|
|
|
channelId: number | null
|
2023-02-11 00:44:00 +08:00
|
|
|
channelCode: string
|
2023-03-22 17:52:06 +08:00
|
|
|
templateId: number | null
|
2023-02-11 00:44:00 +08:00
|
|
|
templateCode: string
|
2023-03-22 17:52:06 +08:00
|
|
|
templateType: number | null
|
2023-02-11 00:44:00 +08:00
|
|
|
templateContent: string
|
2023-03-22 17:52:06 +08:00
|
|
|
templateParams: Map<string, object> | null
|
|
|
|
apiTemplateId: string
|
2023-02-11 00:44:00 +08:00
|
|
|
mobile: string
|
2023-03-22 17:52:06 +08:00
|
|
|
userId: number | null
|
|
|
|
userType: number | null
|
|
|
|
sendStatus: number | null
|
|
|
|
sendTime: Date | null
|
|
|
|
sendCode: number | null
|
2023-02-11 00:44:00 +08:00
|
|
|
sendMsg: string
|
|
|
|
apiSendCode: string
|
|
|
|
apiSendMsg: string
|
|
|
|
apiRequestId: string
|
|
|
|
apiSerialNo: string
|
2023-03-22 17:52:06 +08:00
|
|
|
receiveStatus: number | null
|
|
|
|
receiveTime: Date | null
|
2023-02-11 00:44:00 +08:00
|
|
|
apiReceiveCode: string
|
|
|
|
apiReceiveMsg: string
|
2023-03-22 17:52:06 +08:00
|
|
|
createTime: Date | null
|
2023-02-11 00:44:00 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// 查询短信日志列表
|
2023-03-24 23:07:51 +08:00
|
|
|
export const getSmsLogPage = (params: PageParam) => {
|
2023-02-11 00:44:00 +08:00
|
|
|
return request.get({ url: '/system/sms-log/page', params })
|
|
|
|
}
|
|
|
|
|
|
|
|
// 导出短信日志
|
2023-03-24 23:07:51 +08:00
|
|
|
export const exportSmsLog = (params) => {
|
2023-03-15 18:09:03 +08:00
|
|
|
return request.download({ url: '/system/sms-log/export-excel', params })
|
2023-02-11 00:44:00 +08:00
|
|
|
}
|