Files
----/后端源码/yifan.action-ai.cn/index/js/dept.BQxPXXgN.js

49 lines
934 B
JavaScript

import { l as httpRequest } from "./index.CMd5bD1r.js";
const API_PATH = "/system/dept";
const DeptAPI = {
listDept(query) {
return httpRequest({
url: `${API_PATH}/tree`,
method: "get",
params: query
});
},
detailDept(query) {
return httpRequest({
url: `${API_PATH}/detail/${query}`,
method: "get"
});
},
createDept(body) {
return httpRequest({
url: `${API_PATH}/create`,
method: "post",
data: body
});
},
updateDept(id, body) {
return httpRequest({
url: `${API_PATH}/update/${id}`,
method: "put",
data: body
});
},
deleteDept(body) {
return httpRequest({
url: `${API_PATH}/delete`,
method: "delete",
data: body
});
},
batchDept(body) {
return httpRequest({
url: `${API_PATH}/available/setting`,
method: "patch",
data: body
});
}
};
export {
DeptAPI as D
};