feat: api
parent
76873143a0
commit
8e83c1d149
|
@ -0,0 +1,31 @@
|
|||
import { defHttp } from '@/utils/http/axios'
|
||||
|
||||
// 创建邮箱账号
|
||||
export const createMailAccountApi = (data) => {
|
||||
return defHttp.post({ url: '/system/mail-account/create', data })
|
||||
}
|
||||
|
||||
// 更新邮箱账号
|
||||
export const updateMailAccountApi = (data) => {
|
||||
return defHttp.put({ url: '/system/mail-account/update', data })
|
||||
}
|
||||
|
||||
// 删除邮箱账号
|
||||
export const deleteMailAccountApi = (id: number) => {
|
||||
return defHttp.delete({ url: '/system/mail-account/delete?id=' + id })
|
||||
}
|
||||
|
||||
// 获得邮箱账号
|
||||
export const getMailAccountApi = (id: number) => {
|
||||
return defHttp.get({ url: '/system/mail-account/get?id=' + id })
|
||||
}
|
||||
|
||||
// 获得邮箱账号分页
|
||||
export const getMailAccountPageApi = (params) => {
|
||||
return defHttp.get({ url: '/system/mail-account/page', params })
|
||||
}
|
||||
|
||||
// 获取邮箱账号的精简信息列表
|
||||
export const getSimpleMailAccountListApi = () => {
|
||||
return defHttp.get({ url: '/system/mail-account/list-all-simple' })
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
import { defHttp } from '@/utils/http/axios'
|
||||
|
||||
// 获得邮件日志
|
||||
export const getMailLogApi = (id: number) => {
|
||||
return defHttp.get({ url: '/system/mail-log/get?id=' + id })
|
||||
}
|
||||
|
||||
// 获得邮件日志分页
|
||||
export const getMailAccountPageApi = (params) => {
|
||||
return defHttp.get({ url: '/system/mail-log/page', params })
|
||||
}
|
|
@ -0,0 +1,31 @@
|
|||
import { defHttp } from '@/utils/http/axios'
|
||||
|
||||
// 创建邮件模版
|
||||
export const createMailTemplateApi = (data) => {
|
||||
return defHttp.post({ url: '/system/mail-template/create', data })
|
||||
}
|
||||
|
||||
// 更新邮件模版
|
||||
export const updateMailTemplateApi = (data) => {
|
||||
return defHttp.put({ url: '/system/mail-template/update', data })
|
||||
}
|
||||
|
||||
// 删除邮件模版
|
||||
export const deleteMailTemplateApi = (id: number) => {
|
||||
return defHttp.delete({ url: '/system/mail-template/delete?id=' + id })
|
||||
}
|
||||
|
||||
// 获得邮件模版
|
||||
export const getMailTemplateApi = (id: number) => {
|
||||
return defHttp.get({ url: '/system/mail-template/get?id=' + id })
|
||||
}
|
||||
|
||||
// 获得邮件模版分页
|
||||
export const getMailTemplatePageApi = (params) => {
|
||||
return defHttp.get({ url: '/system/mail-template/page', params })
|
||||
}
|
||||
|
||||
// 发送测试邮件
|
||||
export const sendMail = (data) => {
|
||||
return defHttp.post({ url: '/system/mail-template/send-mail', data })
|
||||
}
|
|
@ -147,7 +147,7 @@ export const formSchema: FormSchema[] = [
|
|||
label: '用户名称',
|
||||
field: 'username',
|
||||
component: 'Input',
|
||||
dynamicDisabled: ({ values }) => values.id !== undefined
|
||||
ifShow: ({ values }) => values.id !== undefined
|
||||
},
|
||||
{
|
||||
label: '用户密码',
|
||||
|
@ -165,7 +165,7 @@ export const formSchema: FormSchema[] = [
|
|||
label: '过期时间',
|
||||
field: 'expireTime',
|
||||
required: true,
|
||||
component: 'TimePicker'
|
||||
component: 'DatePicker'
|
||||
},
|
||||
{
|
||||
label: '绑定域名',
|
||||
|
|
|
@ -21,8 +21,11 @@ export const columns: BasicColumn[] = [
|
|||
},
|
||||
{
|
||||
title: '部门',
|
||||
dataIndex: 'dept.name',
|
||||
width: 120
|
||||
dataIndex: 'deptId',
|
||||
width: 120,
|
||||
customRender: ({ record }) => {
|
||||
return useRender.renderTag(record.dept && record.dept.name)
|
||||
}
|
||||
},
|
||||
{
|
||||
title: '手机号码',
|
||||
|
|
Loading…
Reference in New Issue