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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
| /* eslint-disable */
| // @ts-ignore
| import { request } from '@/utils/request';
|
| /** 删除菜单 DELETE /api/user/menu/deleteMenu */
| export async function menuDeleteMenu(body: API.DeleteMenuCommand, options?: API.RequestConfig) {
| return request<number>('/api/user/menu/deleteMenu', {
| method: 'DELETE',
| headers: {
| 'Content-Type': 'application/json-patch+json',
| },
| data: body,
| ...(options || {}),
| });
| }
|
| /** 查询菜单详情 GET /api/user/menu/getMenu */
| export async function menuGetMenu(body: API.GetMenuQuery, options?: API.RequestConfig) {
| return request<API.GetMenuQueryResult>('/api/user/menu/getMenu', {
| method: 'GET',
| headers: {
| 'Content-Type': 'application/json-patch+json',
| },
| data: body,
| ...(options || {}),
| });
| }
|
| /** 查询菜单列表 GET /api/user/menu/getMenus */
| export async function menuGetMenus(body: API.GetMenusQuery, options?: API.RequestConfig) {
| return request<API.GetMenusQueryResultItem[]>('/api/user/menu/getMenus', {
| method: 'GET',
| headers: {
| 'Content-Type': 'application/json-patch+json',
| },
| data: body,
| ...(options || {}),
| });
| }
|
| /** 保存菜单 POST /api/user/menu/saveMenu */
| export async function menuSaveMenu(body: API.SaveMenuCommand, options?: API.RequestConfig) {
| return request<string>('/api/user/menu/saveMenu', {
| method: 'POST',
| headers: {
| 'Content-Type': 'application/json-patch+json',
| },
| data: body,
| ...(options || {}),
| });
| }
|
|