import {
	WeaTools
} from 'ecCom'

export const getAuth = (params) => {
	return WeaTools.callApi('/api/hrm/inviteinfo/getHasRight', 'GET', params);
}

export const getButtonsMenu = (params) => {
	return WeaTools.callApi('/api/hrm/inviteinfo/getRightMenu', 'GET', params);
}

export const getSearchCondition = (params) => {
	return WeaTools.callApi('/api/hrm/inviteinfo/getSearchCondition', 'GET', params);
}

export const getSearchConditionSub = (params) => {
	return WeaTools.callApi('/api/hrm/applyinfo/getSearchCondition', 'GET', params);
}

export const deleteTableInfo = (params) => {
	return WeaTools.callApi('/api/hrm/inviteinfo/delete', 'POST', params);
}

export const getTableInfo = (params) => {
	return WeaTools.callApi('/api/hrm/inviteinfo/getSearchList', 'GET', params);
}

export const getFormConditions = (params) => {
	return WeaTools.callApi('/api/hrm/inviteinfo/getInviteInfoForm', 'GET', params);
}

export const getTableEditDatas = (params) => {
	return WeaTools.callApi('/api/hrm/inviteinfo/getInviteSchedule', 'GET', params);
}

export const add = (params) => {
	return WeaTools.callApi('/api/hrm/inviteinfo/add', 'POST', params);
}

export const edit = (params) => {
	return WeaTools.callApi('/api/hrm/inviteinfo/edit', 'POST', params);
}

export const saveInviteSchedule = (params) => {
	return WeaTools.callApi('/api/hrm/inviteinfo/saveInviteSchedule', 'POST', params);
}

export const getUseDemandInfo = (params) => {
	return WeaTools.callApi('/api/hrm/inviteinfo/getUseDemandInfo', 'GET', params);
}