import { ResPage, User } from "@/api/interface/index";
|
import http from "@/api";
|
|
/**
|
* @name 操作导航菜单管理模块
|
*/
|
// 获取导航菜单列表信息
|
export const getMenuList = () => {
|
return http.post<ResPage<User.ResUserList>>(`/Menu/FindMenuInfo`);
|
};
|
|
// 新增导航菜单
|
export const addMenu = (params: { id: string }) => {
|
return http.post(`/Menu/AddMenu`, params);
|
};
|
|
// 编辑导航菜单
|
export const editMenu = (params: { id: string }) => {
|
return http.post(`/Menu/UpdateMenu`, params);
|
};
|
|
// 删除导航菜单
|
export const deleteMenu = (params: { id: string[] }) => {
|
return http.post(`/Menu/DeleteMenu`, params);
|
};
|