Newer
Older
KaiFengPC / src / api / system / appMenu.js
@鲁yixuan 鲁yixuan on 19 Aug 1 KB updata
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',
  });
}