zhitong.yu
8 天以前 378d781e6f35f89652aa36e079a8b7fc44cea77e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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);
};