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
33
34
| import { request } from '@umijs/max';
|
| // 分页获取部门列表
| export const getList = async (params) => {
| console.log('111111111111',params);
|
| return request(`/api/huacheng-sangeshenbian/systemPost/list`, {
| method: 'GET',
| params
| });
| }
|
| // 新增部门
| export const add = async (data) => {
| return request('/api/huacheng-sangeshenbian/systemPost/add', {
| method: 'POST',
| data,
| });
| }
|
| // 修改部门
| export const edit = async (data) => {
| return request('/api/huacheng-sangeshenbian/systemPost/edit', {
| method: 'POST',
| data
| });
| }
|
| // 删除部门管理
| export const del = async (data) => {
| return request(`/api/huacheng-sangeshenbian/systemPost/delete/${data.id}`, {
| method: 'DELETE',
| });
| }
|
|