import { WeaTools } from 'ecCom'; export const getSysList = params => { return fetch('/api/bs/hrmsalary/sys/list', { method: 'POST', mode: 'cors', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(params) }).then(res => res.json()) }; export const sysSave = params => { return fetch('/api/bs/hrmsalary/sys/save', { method: 'POST', mode: 'cors', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(params) }).then(res => res.json()) }; export const sysUpdate = params => { return fetch('/api/bs/hrmsalary/sys/update', { method: 'POST', mode: 'cors', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(params) }).then(res => res.json()) }; export const getSysDetail = params => { return WeaTools.callApi('/api/bs/hrmsalary/sys/detail', 'get', params); }