import request from "@/utils/request"; // 查询APP菜单列表 export function listMenu(query) { return request({ url: "/system/appMenu/list", method: "get", params: query, }); } // 查询APP菜单详细 export function getMenu(menuId) { return request({ url: "/system/appMenu/" + menuId, method: "get", }); } // 查询APP菜单下拉树结构 export function treeselect() { return request({ url: "/system/appMenu/treeselect", method: "get", }); } // 根据角色ID查询APP菜单下拉树结构 export function roleMenuTreeselect(roleId) { return request({ url: "/system/appMenu/roleMenuTreeselect/" + roleId, method: "get", }); } // 新增APP菜单 export function addMenu(data) { return request({ url: "/system/appMenu/add", method: "post", data: data, }); } // 修改APP菜单 export function updateMenu(data) { return request({ url: "/system/appMenu/edit", method: "put", data: data, }); } // 删除APP菜单 export function delMenu(menuId) { return request({ url: "/system/appMenu/" + menuId, method: "delete", }); }