import {
	WeaTools
} from 'ecCom';

export const getRightMenu = (params = {}) => WeaTools.callApi('/api/hrm/batchMaintenanceAdjustEdit/getRightMenu', 'POST', params)

export const getCondition = (params = {}, type) => WeaTools.callApi(`/api/hrm/batchMaintenanceAdjustEdit/${type}/batchCondition`, 'POST', params)

export const batch = (params = {}, type) => WeaTools.callApi(`/api/hrm/batchMaintenanceAdjustEdit/${type}/batch?is_multilang_set=true`, 'POST', params)

export const saveBatch = (params = {}, type) => WeaTools.callApi(`/api/hrm/batchMaintenanceAdjustEdit/${type}/saveBatch`, 'POST', params)

export const getForm = (params = {}, type) => WeaTools.callApi(`/api/hrm/batchMaintenanceAdjustEdit/getBatch${type}?is_multilang_set=true`, 'POST', params)

export const saveForm = (params = {}, type) => WeaTools.callApi(`/api/hrm/batchMaintenanceAdjustEdit/saveBatch${type}`, 'POST', params)

export const getSubCompanyInfo = (params = {}) => WeaTools.callApi('/api/hrm/batchMaintenanceAdjust/getSubcompanyInfo', 'POST', params)

export const checkSubDeptAvailable = (params = {}) => WeaTools.callApi('/api/hrm/batchMaintenanceAdjust/checkSubDeptAvailable', 'POST', params)

export const hrmOffline = (params = {}) => WeaTools.callApi('/api/hrm/common/hrmOffline', 'POST', params)

export const saveBatchDefaultPwd = (params = {}) => WeaTools.callApi('/api/hrm/batchMaintenanceAdjustEdit/saveBatchDefaultPwd', 'POST', params)

export const isWeakPassword = (params = {}) => WeaTools.callApi('/api/hrm/password/isWeakPassword', 'POST', params)