| 1234567891011121314151617181920212223242526272829 |
- import { request } from 'umi'
- /**
- * @description 获取部门列表
- */
- export async function getDepartMentList(parentId) {
- return request('/department/list', {
- params: { parentId }
- })
- }
- /**
- * @description 新增部门
- */
- export async function addDepartment(payload) {
- return request('/department/add', { method: 'POST', data: payload })
- }
- /**
- * @description 删除部门
- */
- export async function delDepartment(id) {
- return request('/department/delete', { method: 'POST', data: { id } })
- }
- /** 获取部门-员工列表 */
- export async function queryDepartmentStaffList() {
- return request('/department/staff')
- }
|