🐛 修复 sms 在 IDEA 报错的问题

pull/420/head
shizhong 2024-03-07 12:47:29 +08:00
parent 2f5d1d0083
commit 94a9876204
2 changed files with 13 additions and 13 deletions

View File

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

View File

@ -1,18 +1,18 @@
import request from '@/config/axios' import request from '@/config/axios'
export interface SmsTemplateVO { export interface SmsTemplateVO {
id: number id?: number
type: number type?: number
status: number status: number
code: string code: string
name: string name: string
content: string content: string
remark: string remark: string
apiTemplateId: string apiTemplateId: string
channelId: number channelId?: number
channelCode: string channelCode?: string
params: string[] params?: string[]
createTime: Date createTime?: Date
} }
export interface SendSmsReqVO { export interface SendSmsReqVO {
@ -66,15 +66,15 @@ export const deleteSmsTemplateApi = (id: number) => {
return request.delete({ url: '/system/sms-template/delete?id=' + id }) return request.delete({ url: '/system/sms-template/delete?id=' + id })
} }
// 发送短信
export const sendSmsApi = (data: SendSmsReqVO) => {
return request.post({ url: '/system/sms-template/send-sms', data })
}
// 导出短信模板 // 导出短信模板
export const exportPostApi = (params: SmsTemplateExportReqVO) => { export const exportSmsTemplateApi = (params: SmsTemplateExportReqVO) => {
return request.download({ return request.download({
url: '/system/sms-template/export-excel', url: '/system/sms-template/export-excel',
params params
}) })
} }
// 发送短信
export const sendSmsApi = (data: SendSmsReqVO) => {
return request.post({ url: '/system/sms-template/send-sms', data })
}