import {WeaTools} from "ecCom";

//基本信息
export const getForm = (params={}) => WeaTools.callApi("/api/integration/mail/getALYMailBaseSetForm", "POST", params);
export const getOperate = (params={}) => WeaTools.callApi("/api/integration/mail/getALYMailOperation", "POST", params);

// 日志
export const getLogMenus = (params={}) => WeaTools.callApi("/api/integration/mail/getMailLogRightMenu", "POST", params);
export const getLogCondition = (params={}) => WeaTools.callApi("/api/integration/mail/getMailLogCondition ", "POST", params);
export const getLogDatas = (params={}) => WeaTools.callApi("/api/integration/mail/getMailLogList", "POST", params);

// 基础信息页面
export const getMailList = (params={}) => WeaTools.callApi("/api/integration/mail/getMailList ", "POST", params);
export const getMailListConditions = (params={}) => WeaTools.callApi("/api/integration/mail/getMailListConditions ", "POST", params);
export const getMailSaveOperation = (params={}) => WeaTools.callApi("/api/integration/mail/getMailSaveOperation", "POST", params);
export const getMailOperation = (params={}) => WeaTools.callApi("/api/integration/mail/getMailOperation", "POST", params);
export const getMailDeleteOperation = (params={}) => WeaTools.callApi("/api/integration/mail/getMailDeleteOperation", "POST", params);
// mailMasterId:
export const getMailEditSetForm = (params={}) => WeaTools.callApi("/api/integration/mail/getMailEditSetForm", "POST", params);
// mailType:1
export const getMailAddSetForm = (params={}) => WeaTools.callApi("/api/integration/mail/getMailAddSetForm", "POST", params);
// 切换下拉框
export const getMailSelectSetForm = (params={}) => WeaTools.callApi("/api/integration/mail/getMailSelectSetForm", "POST", params);

// 日志清理tab页
export const getLogSettingFields = params => WeaTools.callApi(`/api/integration/mail/getMailLogSetting`, 'POST', params);
export const saveLogSetting = params => WeaTools.callApi(`/api/integration/mail/getMailLogSave`, 'POST', params);