You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
919 B
31 lines
919 B
import { defHttp } from '@/utils/http/axios' |
|
|
|
// 创建邮箱账号 |
|
export const createMailAccount = (data) => { |
|
return defHttp.post({ url: '/system/mail-account/create', data }) |
|
} |
|
|
|
// 更新邮箱账号 |
|
export const updateMailAccount = (data) => { |
|
return defHttp.put({ url: '/system/mail-account/update', data }) |
|
} |
|
|
|
// 删除邮箱账号 |
|
export const deleteMailAccount = (id: number) => { |
|
return defHttp.delete({ url: '/system/mail-account/delete?id=' + id }) |
|
} |
|
|
|
// 获得邮箱账号 |
|
export const getMailAccount = (id: number) => { |
|
return defHttp.get({ url: '/system/mail-account/get?id=' + id }) |
|
} |
|
|
|
// 获得邮箱账号分页 |
|
export const getMailAccountPage = (params) => { |
|
return defHttp.get({ url: '/system/mail-account/page', params }) |
|
} |
|
|
|
// 获取邮箱账号的精简信息列表 |
|
export const getSimpleMailAccountList = () => { |
|
return defHttp.get({ url: '/system/mail-account/list-all-simple' }) |
|
}
|
|
|