import { WeaTools } from 'ecCom';


/**
 * 工作流-个性化设置
 * @param params
 * @returns {*}
 */
export const getConditionInfo = params => WeaTools.callApi('/api/workflow/userDefaultSetting/getConditionInfo', 'GET', params);

/**
 * 获取列表信息
 * @param params
 * @returns {*}
 */
export const getTable = params => WeaTools.callApi('/api/workflow/userDefaultSetting/getTable', 'GET', params);

/**
 * 编辑
 * @param params
 * @returns {*}
 */
export const doEdit = params => WeaTools.callApi('/api/workflow/userDefaultSetting/doEdit', 'POST', params);

/**
 * 保存
 * @param params
 * @returns {*}
 */
export const doSave = params => WeaTools.callApi('/api/workflow/userDefaultSetting/doSave', 'POST', params);

/**
 * 删除
 * @param params
 * @returns {*}
 */
export const deleteData = params => WeaTools.callApi('/api/workflow/userDefaultSetting/doDel', 'POST', params);

/**
 * 保存
 * @param params
 * @returns {*}
 */
export const doSaveUserDefault = params => WeaTools.callApi('/api/workflow/userDefaultSetting/doSaveUserDefault', 'POST', params);

/**
 * 控制显示和隐藏
 * @param {*} params
 */
export const doChangeStatus = (params = {}) => WeaTools.callApi('/api/workflow/userDefaultSetting/doChangeStatus', 'POST', params);
