| | |
| | | DELETE_BLACKLIST = '/crm/mail/blacklist/deleteBlackList.do', |
| | | GET_BLACKLIST = '/crm/mail/blacklist/getBlackList.do', |
| | | GET_EMAIL_MODULE_BELOW = '/crm/mail/getEmailModuleBelow.do', |
| | | ADD_LIAS_EMAIL = '/crm/mail/account/addAliasEmail.do', |
| | | } |
| | | // 获取邮件路由列表 |
| | | export const getEmailModuleApi = () => defHttp.get({ url: Api.GET_EMAIL_MODULE }); |
| | |
| | | // 修改邮箱配置 |
| | | export const updateAccountApi = (params) => defHttp.post<{}>({ url: Api.UPDATE_ACCOUNT, params }); |
| | | // 删除邮箱配置 |
| | | export const deleteAccountApi = (params) => defHttp.post<{}>({ url: Api.DELETE_ACCOUNT, params }); |
| | | export const deleteAccountApi = (query) => |
| | | defHttp.post<{}>({ url: Api.DELETE_ACCOUNT + '?accountId=' + query }); |
| | | |
| | | // 获取邮箱列表 |
| | | export const getAccountListApi = () => defHttp.get<{}>({ url: Api.GET_ACCOUNT_LIST }); |
| | |
| | | }); |
| | | // 设置完成时间 |
| | | export const updateHandleAPi = (params) => |
| | | defHttp.get({ |
| | | defHttp.post({ |
| | | url: Api.UPDATE_HANDLE, |
| | | params, |
| | | }); |
| | |
| | | params, |
| | | }); |
| | | |
| | | |
| | | // 新增黑名单 |
| | | export const addBlackListApi = (params) => |
| | | defHttp.post({ |
| | |
| | | params, |
| | | }); |
| | | |
| | | // 文件夹结构 |
| | | export const getEmailModuleBelowApi = () => |
| | | defHttp.get({ |
| | | url: Api.GET_EMAIL_MODULE_BELOW, |
| | | }); |
| | | |
| | | export const getEmailModuleBelowApi = () => |
| | | defHttp.get({ |
| | | url: Api.GET_EMAIL_MODULE_BELOW, |
| | | }); |
| | | |
| | | //邮箱别名 |
| | | export const addLiasEmailApi = (params) => |
| | | defHttp.get({ |
| | | url: Api.ADD_LIAS_EMAIL, |
| | | params, |
| | | }); |