upload project source code
This commit is contained in:
48
后端源码/yifan.action-ai.cn/index/js/menu.uy9JHUjy.js
Normal file
48
后端源码/yifan.action-ai.cn/index/js/menu.uy9JHUjy.js
Normal file
@@ -0,0 +1,48 @@
|
||||
import { l as httpRequest } from "./index.CMd5bD1r.js";
|
||||
const API_PATH = "/system/menu";
|
||||
const MenuAPI = {
|
||||
listMenu(query) {
|
||||
return httpRequest({
|
||||
url: `${API_PATH}/tree`,
|
||||
method: "get",
|
||||
params: query
|
||||
});
|
||||
},
|
||||
detailMenu(query) {
|
||||
return httpRequest({
|
||||
url: `${API_PATH}/detail/${query}`,
|
||||
method: "get"
|
||||
});
|
||||
},
|
||||
createMenu(body) {
|
||||
return httpRequest({
|
||||
url: `${API_PATH}/create`,
|
||||
method: "post",
|
||||
data: body
|
||||
});
|
||||
},
|
||||
updateMenu(id, body) {
|
||||
return httpRequest({
|
||||
url: `${API_PATH}/update/${id}`,
|
||||
method: "put",
|
||||
data: body
|
||||
});
|
||||
},
|
||||
deleteMenu(body) {
|
||||
return httpRequest({
|
||||
url: `${API_PATH}/delete`,
|
||||
method: "delete",
|
||||
data: body
|
||||
});
|
||||
},
|
||||
batchMenu(body) {
|
||||
return httpRequest({
|
||||
url: `${API_PATH}/available/setting`,
|
||||
method: "patch",
|
||||
data: body
|
||||
});
|
||||
}
|
||||
};
|
||||
export {
|
||||
MenuAPI as M
|
||||
};
|
||||
Reference in New Issue
Block a user