Vue3 重构:REVIEW 短信日志

This commit is contained in:
YunaiV
2023-03-24 23:07:51 +08:00
parent 2a3fe7d2bc
commit 6b194bb95f
17 changed files with 516 additions and 669 deletions

View File

@ -31,7 +31,7 @@ export const getSmsChannelPageApi = (params: SmsChannelPageReqVO) => {
}
// 获得短信渠道精简列表
export function getSimpleSmsChannels() {
export function getSimpleSmsChannelList() {
return request.get({ url: '/system/sms-channel/list-all-simple' })
}

View File

@ -28,31 +28,12 @@ export interface SmsLogVO {
createTime: Date | null
}
export interface SmsLogPageReqVO extends PageParam {
channelId?: number | null
templateId?: number | null
mobile?: string
sendStatus?: number | null
sendTime?: Date[]
receiveStatus?: number | null
receiveTime?: Date[]
}
export interface SmsLogExportReqVO {
channelId?: number
templateId?: number
mobile?: string
sendStatus?: number
sendTime?: Date[]
receiveStatus?: number
receiveTime?: Date[]
}
// 查询短信日志列表
export const getSmsLogPageApi = (params: SmsLogPageReqVO) => {
export const getSmsLogPage = (params: PageParam) => {
return request.get({ url: '/system/sms-log/page', params })
}
// 导出短信日志
export const exportSmsLogApi = (params: SmsLogExportReqVO) => {
export const exportSmsLog = (params) => {
return request.download({ url: '/system/sms-log/export-excel', params })
}