import {
	WeaTools
} from 'ecCom'

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

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

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

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

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