73 changed files with 307 additions and 312 deletions
			
			
		@ -1,31 +1,31 @@ | 
				
			|||||||
import { defHttp } from '@/utils/http/axios' | 
					import { defHttp } from '@/utils/http/axios' | 
				
			||||||
 | 
					
 | 
				
			||||||
// 创建邮箱账号
 | 
					// 创建邮箱账号
 | 
				
			||||||
export const createMailAccountApi = (data) => { | 
					export const createMailAccount = (data) => { | 
				
			||||||
  return defHttp.post({ url: '/system/mail-account/create', data }) | 
					  return defHttp.post({ url: '/system/mail-account/create', data }) | 
				
			||||||
} | 
					} | 
				
			||||||
 | 
					
 | 
				
			||||||
// 更新邮箱账号
 | 
					// 更新邮箱账号
 | 
				
			||||||
export const updateMailAccountApi = (data) => { | 
					export const updateMailAccount = (data) => { | 
				
			||||||
  return defHttp.put({ url: '/system/mail-account/update', data }) | 
					  return defHttp.put({ url: '/system/mail-account/update', data }) | 
				
			||||||
} | 
					} | 
				
			||||||
 | 
					
 | 
				
			||||||
// 删除邮箱账号
 | 
					// 删除邮箱账号
 | 
				
			||||||
export const deleteMailAccountApi = (id: number) => { | 
					export const deleteMailAccount = (id: number) => { | 
				
			||||||
  return defHttp.delete({ url: '/system/mail-account/delete?id=' + id }) | 
					  return defHttp.delete({ url: '/system/mail-account/delete?id=' + id }) | 
				
			||||||
} | 
					} | 
				
			||||||
 | 
					
 | 
				
			||||||
// 获得邮箱账号
 | 
					// 获得邮箱账号
 | 
				
			||||||
export const getMailAccountApi = (id: number) => { | 
					export const getMailAccount = (id: number) => { | 
				
			||||||
  return defHttp.get({ url: '/system/mail-account/get?id=' + id }) | 
					  return defHttp.get({ url: '/system/mail-account/get?id=' + id }) | 
				
			||||||
} | 
					} | 
				
			||||||
 | 
					
 | 
				
			||||||
// 获得邮箱账号分页
 | 
					// 获得邮箱账号分页
 | 
				
			||||||
export const getMailAccountPageApi = (params) => { | 
					export const getMailAccountPage = (params) => { | 
				
			||||||
  return defHttp.get({ url: '/system/mail-account/page', params }) | 
					  return defHttp.get({ url: '/system/mail-account/page', params }) | 
				
			||||||
} | 
					} | 
				
			||||||
 | 
					
 | 
				
			||||||
// 获取邮箱账号的精简信息列表
 | 
					// 获取邮箱账号的精简信息列表
 | 
				
			||||||
export const getSimpleMailAccountListApi = () => { | 
					export const getSimpleMailAccountList = () => { | 
				
			||||||
  return defHttp.get({ url: '/system/mail-account/list-all-simple' }) | 
					  return defHttp.get({ url: '/system/mail-account/list-all-simple' }) | 
				
			||||||
} | 
					} | 
				
			||||||
 | 
				
			|||||||
@ -1,11 +1,11 @@ | 
				
			|||||||
import { defHttp } from '@/utils/http/axios' | 
					import { defHttp } from '@/utils/http/axios' | 
				
			||||||
 | 
					
 | 
				
			||||||
// 获得邮件日志
 | 
					// 获得邮件日志
 | 
				
			||||||
export const getMailLogApi = (id: number) => { | 
					export const getMailLog = (id: number) => { | 
				
			||||||
  return defHttp.get({ url: '/system/mail-log/get?id=' + id }) | 
					  return defHttp.get({ url: '/system/mail-log/get?id=' + id }) | 
				
			||||||
} | 
					} | 
				
			||||||
 | 
					
 | 
				
			||||||
// 获得邮件日志分页
 | 
					// 获得邮件日志分页
 | 
				
			||||||
export const getMailAccountPageApi = (params) => { | 
					export const getMailAccountPage = (params) => { | 
				
			||||||
  return defHttp.get({ url: '/system/mail-log/page', params }) | 
					  return defHttp.get({ url: '/system/mail-log/page', params }) | 
				
			||||||
} | 
					} | 
				
			||||||
 | 
				
			|||||||
@ -1,36 +1,36 @@ | 
				
			|||||||
import { defHttp } from '@/utils/http/axios' | 
					import { defHttp } from '@/utils/http/axios' | 
				
			||||||
 | 
					
 | 
				
			||||||
// 创建站内信模板
 | 
					// 创建站内信模板
 | 
				
			||||||
export const createNotifyTemplateApi = (data) => { | 
					export const createNotifyTemplate = (data) => { | 
				
			||||||
  return defHttp.post({ url: '/system/notify-template/create', data }) | 
					  return defHttp.post({ url: '/system/notify-template/create', data }) | 
				
			||||||
} | 
					} | 
				
			||||||
 | 
					
 | 
				
			||||||
// 更新站内信模板
 | 
					// 更新站内信模板
 | 
				
			||||||
export const updateNotifyTemplateApi = (data) => { | 
					export const updateNotifyTemplate = (data) => { | 
				
			||||||
  return defHttp.put({ url: '/system/notify-template/update', data }) | 
					  return defHttp.put({ url: '/system/notify-template/update', data }) | 
				
			||||||
} | 
					} | 
				
			||||||
 | 
					
 | 
				
			||||||
// 删除站内信模板
 | 
					// 删除站内信模板
 | 
				
			||||||
export const deleteNotifyTemplateApi = (id: number) => { | 
					export const deleteNotifyTemplate = (id: number) => { | 
				
			||||||
  return defHttp.delete({ url: '/system/notify-template/delete?id=' + id }) | 
					  return defHttp.delete({ url: '/system/notify-template/delete?id=' + id }) | 
				
			||||||
} | 
					} | 
				
			||||||
 | 
					
 | 
				
			||||||
// 获得站内信模板
 | 
					// 获得站内信模板
 | 
				
			||||||
export const getNotifyTemplateApi = (id: number) => { | 
					export const getNotifyTemplate = (id: number) => { | 
				
			||||||
  return defHttp.get({ url: '/system/notify-template/get?id=' + id }) | 
					  return defHttp.get({ url: '/system/notify-template/get?id=' + id }) | 
				
			||||||
} | 
					} | 
				
			||||||
 | 
					
 | 
				
			||||||
// 获得站内信模板分页
 | 
					// 获得站内信模板分页
 | 
				
			||||||
export const getNotifyTemplatePageApi = (params) => { | 
					export const getNotifyTemplatePage = (params) => { | 
				
			||||||
  return defHttp.get({ url: '/system/notify-template/page', params }) | 
					  return defHttp.get({ url: '/system/notify-template/page', params }) | 
				
			||||||
} | 
					} | 
				
			||||||
 | 
					
 | 
				
			||||||
// 获取岗位精简信息列表
 | 
					// 获取岗位精简信息列表
 | 
				
			||||||
export const listSimplePostsApi = () => { | 
					export const listSimplePosts = () => { | 
				
			||||||
  return defHttp.get({ url: '/system/post/list-all-simple' }) | 
					  return defHttp.get({ url: '/system/post/list-all-simple' }) | 
				
			||||||
} | 
					} | 
				
			||||||
 | 
					
 | 
				
			||||||
// 导出站内信模板 Excel
 | 
					// 导出站内信模板 Excel
 | 
				
			||||||
export const exportNotifyTemplateExcelApi = (params) => { | 
					export const exportNotifyTemplateExcel = (params) => { | 
				
			||||||
  return defHttp.download({ url: '/system/notify-template/export-excel', params }, '导出站内信模板.xls') | 
					  return defHttp.download({ url: '/system/notify-template/export-excel', params }, '导出站内信模板.xls') | 
				
			||||||
} | 
					} | 
				
			||||||
 | 
				
			|||||||
		Reference in new issue