import {
	WeaTools
} from 'ecCom';

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

export const fetchRightMenu = (params) => {
	return WeaTools.callApi('/api/hrm/finance/salaryappsetting/getButtonMenu', 'GET', params);
}

export const fetchForm = (params) => {
	return WeaTools.callApi('/api/encrypt/secondauthhrmsetting/getSetting', 'GET', {...params, itemcode: 'SALARY'});
}

export const save = (params) => {
	return WeaTools.callApi('/api/encrypt/secondauthhrmsetting/saveSetting', 'POST', {...params, itemcode: 'SALARY'});
}