feat: 部门管理

This commit is contained in:
easy 2023-02-08 18:16:06 +08:00
parent ece2ba2ff4
commit bd7547405b
1 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,10 @@
import server from '@/utils/request';
// 获取tree数据-第一层
export const getTreeData_api = (data:object) => server.post(`/organization/_all/tree`, data);
// 新增部门
export const addDepartment_api = (data:object) => server.post(`/organization`, data);
// 更新部门
export const updateDepartment_api = (data:object) => server.patch(`/organization`, data);
// 删除部门
export const delDepartment_api = (id:string) => server.remove(`/organization/${id}`);