import request from '@u/request' // 根据人员获取机构 export const getListByEmpId = (data:object) => { return request({ url: '/api/pubBranch/getListByEmpId', method: 'get', data: data }) } // 获取下级机构列表 export const getChildList = (data:object) => { return request({ url: '/api/pubBranch/getChildList', method: 'get', data: data }) } // 获取默认ID export const getMaxBranchId = (data:object) => { return request({ url: '/api/pubBranch/getMaxBranchId', method: 'get', data: data }) } // 新增机构 export const insertPubBranch = (data:object) => { return request({ url: '/api/pubBranch/insert', method: 'post', data: data }) } // 修改机构 export const updatePubBranch = (data:object) => { return request({ url: '/api/pubBranch/update', method: 'post', data: data }) } // 删除机构 export const deleteById = (data:object) => { return request({ url: '/api/pubBranch/deleteById', method: 'post', data: data }) } // 根据ID获取数据 export const getOneById = (data:object) => { return request({ url: '/api/pubBranch/getOneById', method: 'get', data: data }) }