1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
| import { request } from '@umijs/max';
|
| // 分页获取部门列表
| export const getList = async (data) => {
| return request(`/system/dept/list`, {
| method: 'GET',
| params:data
| });
| }
|
| // 新增部门
| export const add = async (data) => {
| return request('/system/dept', {
| method: 'POST',
| data,
| });
| }
|
| // 修改部门
| export const edit = async (data) => {
| return request('/system/dept', {
| method: 'PUT',
| data
| });
| }
|
| // 删除部门管理
| export const del = async (data) => {
| return request(`/system/dept/${data}`, {
| method: 'DELETE',
| });
| }
|
|