import {
	WeaTools
} from 'ecCom'

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

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

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

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

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

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

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

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

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

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

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