提交 | 用户 | 时间
|
820397
|
1 |
import request from '@/config/axios' |
H |
2 |
|
|
3 |
export interface SmsChannelVO { |
|
4 |
id: number |
|
5 |
code: string |
|
6 |
status: number |
|
7 |
signature: string |
|
8 |
remark: string |
|
9 |
apiKey: string |
|
10 |
apiSecret: string |
|
11 |
callbackUrl: string |
|
12 |
createTime: Date |
|
13 |
} |
|
14 |
|
|
15 |
// 查询短信渠道列表 |
|
16 |
export const getSmsChannelPage = (params: PageParam) => { |
|
17 |
return request.get({ url: '/system/sms-channel/page', params }) |
|
18 |
} |
|
19 |
|
|
20 |
// 获得短信渠道精简列表 |
|
21 |
export function getSimpleSmsChannelList() { |
|
22 |
return request.get({ url: '/system/sms-channel/simple-list' }) |
|
23 |
} |
|
24 |
|
|
25 |
// 查询短信渠道详情 |
|
26 |
export const getSmsChannel = (id: number) => { |
|
27 |
return request.get({ url: '/system/sms-channel/get?id=' + id }) |
|
28 |
} |
|
29 |
|
|
30 |
// 新增短信渠道 |
|
31 |
export const createSmsChannel = (data: SmsChannelVO) => { |
|
32 |
return request.post({ url: '/system/sms-channel/create', data }) |
|
33 |
} |
|
34 |
|
|
35 |
// 修改短信渠道 |
|
36 |
export const updateSmsChannel = (data: SmsChannelVO) => { |
|
37 |
return request.put({ url: '/system/sms-channel/update', data }) |
|
38 |
} |
|
39 |
|
|
40 |
// 删除短信渠道 |
|
41 |
export const deleteSmsChannel = (id: number) => { |
|
42 |
return request.delete({ url: '/system/sms-channel/delete?id=' + id }) |
|
43 |
} |