提交 | 用户 | 时间
|
820397
|
1 |
import request from '@/config/axios' |
H |
2 |
|
|
3 |
export interface MailAccountVO { |
|
4 |
id: number |
|
5 |
mail: string |
|
6 |
username: string |
|
7 |
password: string |
|
8 |
host: string |
|
9 |
port: number |
|
10 |
sslEnable: boolean |
|
11 |
starttlsEnable: boolean |
|
12 |
} |
|
13 |
|
|
14 |
// 查询邮箱账号列表 |
|
15 |
export const getMailAccountPage = async (params: PageParam) => { |
|
16 |
return await request.get({ url: '/system/mail-account/page', params }) |
|
17 |
} |
|
18 |
|
|
19 |
// 查询邮箱账号详情 |
|
20 |
export const getMailAccount = async (id: number) => { |
|
21 |
return await request.get({ url: '/system/mail-account/get?id=' + id }) |
|
22 |
} |
|
23 |
|
|
24 |
// 新增邮箱账号 |
|
25 |
export const createMailAccount = async (data: MailAccountVO) => { |
|
26 |
return await request.post({ url: '/system/mail-account/create', data }) |
|
27 |
} |
|
28 |
|
|
29 |
// 修改邮箱账号 |
|
30 |
export const updateMailAccount = async (data: MailAccountVO) => { |
|
31 |
return await request.put({ url: '/system/mail-account/update', data }) |
|
32 |
} |
|
33 |
|
|
34 |
// 删除邮箱账号 |
|
35 |
export const deleteMailAccount = async (id: number) => { |
|
36 |
return await request.delete({ url: '/system/mail-account/delete?id=' + id }) |
|
37 |
} |
|
38 |
|
|
39 |
// 获得邮箱账号精简列表 |
|
40 |
export const getSimpleMailAccountList = async () => { |
|
41 |
return request.get({ url: '/system/mail-account/simple-list' }) |
|
42 |
} |