完成岗位的迁移

This commit is contained in:
YunaiV
2021-01-12 00:11:19 +08:00
parent e4fd022ce1
commit ba6c879ee1
18 changed files with 317 additions and 361 deletions

View File

@ -3,7 +3,7 @@ import request from '@/utils/request'
// 查询岗位列表
export function listPost(query) {
return request({
url: '/system/post/list',
url: '/system/post/page',
method: 'get',
params: query
})
@ -20,7 +20,7 @@ export function listSimplePosts() {
// 查询岗位详细
export function getPost(postId) {
return request({
url: '/system/post/' + postId,
url: '/system/post/get?id=' + postId,
method: 'get'
})
}
@ -28,7 +28,7 @@ export function getPost(postId) {
// 新增岗位
export function addPost(data) {
return request({
url: '/system/post',
url: '/system/post/create',
method: 'post',
data: data
})
@ -37,8 +37,8 @@ export function addPost(data) {
// 修改岗位
export function updatePost(data) {
return request({
url: '/system/post',
method: 'put',
url: '/system/post/update',
method: 'post',
data: data
})
}
@ -46,8 +46,8 @@ export function updatePost(data) {
// 删除岗位
export function delPost(postId) {
return request({
url: '/system/post/' + postId,
method: 'delete'
url: '/system/post/delete?id=' + postId,
method: 'post'
})
}