46444bd0
RuoYi
RuoYi-Vue 1.0
|
1
2
3
4
5
|
import request from '@/utils/request'
// 查询岗位列表
export function listPost(query) {
return request({
|
ba6c879e
YunaiV
完成岗位的迁移
|
6
|
url: '/system/post/page',
|
46444bd0
RuoYi
RuoYi-Vue 1.0
|
7
8
9
10
11
|
method: 'get',
params: query
})
}
|
e3884ee5
YunaiV
完成用户的添加和修改的逻辑
|
12
13
14
15
16
17
18
19
|
// 获取岗位精简信息列表
export function listSimplePosts() {
return request({
url: '/system/post/list-all-simple',
method: 'get'
})
}
|
46444bd0
RuoYi
RuoYi-Vue 1.0
|
20
21
22
|
// 查询岗位详细
export function getPost(postId) {
return request({
|
ba6c879e
YunaiV
完成岗位的迁移
|
23
|
url: '/system/post/get?id=' + postId,
|
46444bd0
RuoYi
RuoYi-Vue 1.0
|
24
25
26
27
28
29
30
|
method: 'get'
})
}
// 新增岗位
export function addPost(data) {
return request({
|
ba6c879e
YunaiV
完成岗位的迁移
|
31
|
url: '/system/post/create',
|
46444bd0
RuoYi
RuoYi-Vue 1.0
|
32
33
34
35
36
37
38
39
|
method: 'post',
data: data
})
}
// 修改岗位
export function updatePost(data) {
return request({
|
ba6c879e
YunaiV
完成岗位的迁移
|
40
|
url: '/system/post/update',
|
78e847a8
YunaiV
整理 dept、post 模块的 ...
|
41
|
method: 'put',
|
46444bd0
RuoYi
RuoYi-Vue 1.0
|
42
43
44
45
46
47
48
|
data: data
})
}
// 删除岗位
export function delPost(postId) {
return request({
|
ba6c879e
YunaiV
完成岗位的迁移
|
49
|
url: '/system/post/delete?id=' + postId,
|
78e847a8
YunaiV
整理 dept、post 模块的 ...
|
50
|
method: 'delete'
|
46444bd0
RuoYi
RuoYi-Vue 1.0
|
51
|
})
|
bcee37b8
RuoYi
若依 1.1
|
52
53
54
55
56
57
58
|
}
// 导出岗位
export function exportPost(query) {
return request({
url: '/system/post/export',
method: 'get',
|
629fa9b4
YunaiV
1. 基于 db 实现文件的存储
|
59
60
|
params: query,
responseType: 'blob'
|
bcee37b8
RuoYi
若依 1.1
|
61
|
})
|
e3884ee5
YunaiV
完成用户的添加和修改的逻辑
|
62
|
}
|