import {
	WeaTools
} from 'ecCom'

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

export const getMenus = (params) => {
	return WeaTools.callApi('/api/kq/travelrules/getRightMenu', 'GET', params);
}

export const getTravelRulesForm = (params) => {
	return WeaTools.callApi('/api/kq/travelrules/getTravelRulesForm', 'GET', params);
}

export const saveTravelRules = (params) => {
	return WeaTools.callApi('/api/kq/travelrules/saveTravelRules', 'POST', params);
}