import request from '@u/request' // 获取文件审核批准权限人员列表 export const getEmpListByRightCode = (data:object) => { return request({ url: '/api/pubEmp/getEmpListByRightCode', method: 'get', data: data }) } // 根据机构和工号获取人员信息 export const getDirListByCode = (data:object) => { return request({ url: '/api/pubEmp/getDirListByCode', method: 'get', data: data }) } // 获取人员目录列表 export const getDirList = (data:object) => { return request({ url: '/api/pubEmp/getDirList', method: 'get', data: data }) } // 获取人员ID获取人员详细信息 export const getPubEmp = (data:object) => { return request({ url: '/api/pubEmp/getOneById', method: 'get', data: data }) } // 人员修改 export const savePubEmp = (data:object) => { return request({ url: '/api/pubEmp/save', method: 'post', data: data, headers: { contentType: 'application/json' } }) } // 人员删除 export const deletePubEmp = (data:object) => { return request({ url: '/api/pubEmp/deleteById', method: 'post', data: data }) } // 获取当前同科室人员列表 export const getDirListByDept = (data:object) => { return request({ url: '/api/pubEmp/getDirListByDept', method: 'get', data: data }) } // 编辑(个人中心信息修改) export const updateForCenter = (data:object) => { return request({ url: '/api/pubEmp/updateForCenter', method: 'post', data: data, headers: { contentType: 'application/json' } }) } // 编辑(个人中心信息修改) export const updatePsw = (data:object) => { return request({ url: '/api/pubEmp/updatePsw', method: 'post', data: data }) } // 重置密码 export const resetPsw = (data:object) => { return request({ url: '/api/pubEmp/resetPsw', method: 'post', data: data }) }