邮箱模块:vue3 邮箱账号的管理
parent
2c55d29411
commit
4cbf7398e8
@ -0,0 +1,41 @@
|
|||||||
|
import request from '@/config/axios'
|
||||||
|
|
||||||
|
export interface MailAccountVO {
|
||||||
|
id: number
|
||||||
|
mail: string
|
||||||
|
username: string
|
||||||
|
password: string
|
||||||
|
host: string
|
||||||
|
port: number
|
||||||
|
sslEnable: boolean
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface MailAccountPageReqVO extends PageParam {
|
||||||
|
mail?: string
|
||||||
|
username?: string
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询邮箱账号列表
|
||||||
|
export const getMailAccountPageApi = async (params: MailAccountPageReqVO) => {
|
||||||
|
return await request.get({ url: '/system/mail-account/page', params })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询邮箱账号详情
|
||||||
|
export const getMailAccountApi = async (id: number) => {
|
||||||
|
return await request.get({ url: '/system/mail-account/get?id=' + id })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 新增邮箱账号
|
||||||
|
export const createMailAccountApi = async (data: MailAccountVO) => {
|
||||||
|
return await request.post({ url: '/system/mail-account/create', data })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 修改邮箱账号
|
||||||
|
export const updateMailAccountApi = async (data: MailAccountVO) => {
|
||||||
|
return await request.put({ url: '/system/mail-account/update', data })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除邮箱账号
|
||||||
|
export const deleteMailAccountApi = async (id: number) => {
|
||||||
|
return await request.delete({ url: '/system/mail-account/delete?id=' + id })
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue