🐛 修复 sms 在 IDEA 报错的问题
parent
2f5d1d0083
commit
94a9876204
|
@ -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' })
|
||||||
}
|
}
|
||||||
|
|
||||||
// 查询短信渠道详情
|
// 查询短信渠道详情
|
||||||
|
|
|
@ -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 })
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue