提交 | 用户 | 时间
|
23db5e
|
1 |
import request from '@/config/axios' |
H |
2 |
|
|
3 |
export interface AppMenuVO { |
|
4 |
id: number |
|
5 |
name: string |
|
6 |
permission: string |
|
7 |
type: number |
|
8 |
sort: number |
|
9 |
parentId: number |
|
10 |
path: string |
|
11 |
icon: string |
|
12 |
component: string |
|
13 |
componentName?: string |
|
14 |
status: number |
|
15 |
visible: boolean |
|
16 |
keepAlive: boolean |
|
17 |
alwaysShow?: boolean |
|
18 |
createTime: Date |
|
19 |
} |
|
20 |
|
|
21 |
// 查询菜单(精简)列表 |
|
22 |
export const getSimpleMenusList = () => { |
|
23 |
return request.get({ url: '/system/app-menu/simple-list' }) |
|
24 |
} |
|
25 |
|
|
26 |
// 查询应用列表 |
|
27 |
export const getAppList = () => { |
|
28 |
return request.get({ url: '/system/app-menu/list' }) |
|
29 |
} |
|
30 |
|
|
31 |
// 查询应用菜单列表 |
|
32 |
export const getAppMenuList = (id) => { |
|
33 |
return request.get({ url: '/system/app-menu/get-menu?id=' + id }) |
|
34 |
} |
|
35 |
|
|
36 |
// 获取菜单详情 |
|
37 |
export const getAppMenu = (id: number) => { |
|
38 |
return request.get({ url: '/system/app-menu/get?id=' + id }) |
|
39 |
} |
|
40 |
|