Files

45 lines
740 B
JavaScript
Raw Normal View History

2023-05-17 09:56:28 +08:00
import request from "@/utils/request";
2023-05-09 15:21:05 +08:00
// 查询岗位列表
export function listPost(query) {
return request({
2023-05-17 09:56:28 +08:00
url: "/system/post/list",
method: "get",
params: query,
});
2023-05-09 15:21:05 +08:00
}
// 查询岗位详细
export function getPost(postId) {
return request({
2023-05-17 09:56:28 +08:00
url: "/system/post/" + postId,
method: "get",
});
2023-05-09 15:21:05 +08:00
}
// 新增岗位
export function addPost(data) {
return request({
2023-05-17 09:56:28 +08:00
url: "/system/post",
method: "post",
data: data,
});
2023-05-09 15:21:05 +08:00
}
// 修改岗位
export function updatePost(data) {
return request({
2023-05-17 09:56:28 +08:00
url: "/system/post",
method: "put",
data: data,
});
2023-05-09 15:21:05 +08:00
}
// 删除岗位
export function delPost(postId) {
return request({
2023-05-17 09:56:28 +08:00
url: "/system/post/" + postId,
method: "delete",
});
2023-05-09 15:21:05 +08:00
}