huangyinfeng
4 天以前 db42d08c39ae6129e2b95cd24c0d57c6769282e5
src/api/email/userList.ts
@@ -49,6 +49,7 @@
  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 });
@@ -73,7 +74,8 @@
// 修改邮箱配置
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 });
@@ -158,7 +160,7 @@
  });
// 设置完成时间
export const updateHandleAPi = (params) =>
  defHttp.get({
  defHttp.post({
    url: Api.UPDATE_HANDLE,
    params,
  });
@@ -252,7 +254,6 @@
    params,
  });
// 新增黑名单
export const addBlackListApi = (params) =>
  defHttp.post({
@@ -281,9 +282,15 @@
    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,
  });