import request from "@/utils/request";
const api = "/mosty-api/mosty-base";

// 查询菜单信息
export const selectMenuList = (params) => {
  return request({
    url: api + "/sysMenu/selectMenuList",
    method: "get",
    params
  });
};

// 添加菜单信息
export const addSysMenu = (data) => {
  return request({
    url: api + "/sysMenu/addSysMenu",
    method: "post",
    data
  });
};

// 修改菜单信息
export const editSysMenu = (data) => {
  return request({
    url: api + "/sysMenu/updateSysMenu",
    method: "post",
    data
  });
};

// 删除菜单信息
export const deleteSysMenu = (data) => {
  return request({
    url: api + "/sysMenu/deleteSysMenu",
    method: "post",
    data
  });
};

// 上下移动
export const changeOrderno = (params) => {
  return request({
    url: api + "/sysMenu/changeOrderno",
    method: "get",
    params
  });
};
