提交 | 用户 | 时间
|
fd2207
|
1 |
import request from '@/utils/request' |
懒 |
2 |
|
|
3 |
// 查询岗位列表 |
|
4 |
export function listPost(query) { |
|
5 |
return request({ |
|
6 |
url: '/system/post/list', |
|
7 |
method: 'get', |
|
8 |
params: query |
|
9 |
}) |
|
10 |
} |
|
11 |
|
|
12 |
// 查询岗位详细 |
|
13 |
export function getPost(postId) { |
|
14 |
return request({ |
|
15 |
url: '/system/post/' + postId, |
|
16 |
method: 'get' |
|
17 |
}) |
|
18 |
} |
|
19 |
|
|
20 |
// 新增岗位 |
|
21 |
export function addPost(data) { |
|
22 |
return request({ |
|
23 |
url: '/system/post', |
|
24 |
method: 'post', |
|
25 |
data: data |
|
26 |
}) |
|
27 |
} |
|
28 |
|
|
29 |
// 修改岗位 |
|
30 |
export function updatePost(data) { |
|
31 |
return request({ |
|
32 |
url: '/system/post', |
|
33 |
method: 'put', |
|
34 |
data: data |
|
35 |
}) |
|
36 |
} |
|
37 |
|
|
38 |
// 删除岗位 |
|
39 |
export function delPost(postId) { |
|
40 |
return request({ |
|
41 |
url: '/system/post/' + postId, |
|
42 |
method: 'delete' |
|
43 |
}) |
|
44 |
} |