refactor: sms

This commit is contained in:
xingyu
2022-11-15 20:43:02 +08:00
parent 12ac097b47
commit 09e61f7ef3
12 changed files with 361 additions and 487 deletions

View File

@@ -1,8 +1,23 @@
import request from '@/config/axios'
import type { SmsChannelVO } from './types'
export type SmsChannelVO = {
id: number
status: number
signature: string
remark: string
apiKey: string
apiSecret: string
callbackUrl: string
createTime: string
}
export interface SmsChannelPageReqVO extends PageParam {
signature?: string
code?: string
status?: number
}
// 查询短信渠道列表
export const getSmsChannelPageApi = (params) => {
export const getSmsChannelPageApi = (params: SmsChannelPageReqVO) => {
return request.get({ url: '/system/sms-channel/page', params })
}