upload project source code
This commit is contained in:
56
后端源码/yifan.action-ai.cn/index/js/position.QXDy5vCW.js
Normal file
56
后端源码/yifan.action-ai.cn/index/js/position.QXDy5vCW.js
Normal file
@@ -0,0 +1,56 @@
|
||||
import { l as httpRequest } from "./index.CMd5bD1r.js";
|
||||
const API_PATH = "/system/position";
|
||||
const PositionAPI = {
|
||||
listPosition(query) {
|
||||
return httpRequest({
|
||||
url: `${API_PATH}/list`,
|
||||
method: "get",
|
||||
params: query
|
||||
});
|
||||
},
|
||||
detailPosition(query) {
|
||||
return httpRequest({
|
||||
url: `${API_PATH}/detail/${query}`,
|
||||
method: "get"
|
||||
});
|
||||
},
|
||||
createPosition(body) {
|
||||
return httpRequest({
|
||||
url: `${API_PATH}/create`,
|
||||
method: "post",
|
||||
data: body
|
||||
});
|
||||
},
|
||||
updatePosition(id, body) {
|
||||
return httpRequest({
|
||||
url: `${API_PATH}/update/${id}`,
|
||||
method: "put",
|
||||
data: body
|
||||
});
|
||||
},
|
||||
deletePosition(body) {
|
||||
return httpRequest({
|
||||
url: `${API_PATH}/delete`,
|
||||
method: "delete",
|
||||
data: body
|
||||
});
|
||||
},
|
||||
batchPosition(body) {
|
||||
return httpRequest({
|
||||
url: `${API_PATH}/available/setting`,
|
||||
method: "patch",
|
||||
data: body
|
||||
});
|
||||
},
|
||||
exportPosition(body) {
|
||||
return httpRequest({
|
||||
url: `${API_PATH}/export`,
|
||||
method: "post",
|
||||
data: body,
|
||||
responseType: "blob"
|
||||
});
|
||||
}
|
||||
};
|
||||
export {
|
||||
PositionAPI as P
|
||||
};
|
||||
Reference in New Issue
Block a user