提交 | 用户 | 时间
|
aff5c9
|
1 |
import request from '@/config/axios' |
潘 |
2 |
|
|
3 |
export interface MpkMenuVO { |
|
4 |
id: string |
|
5 |
name: string |
|
6 |
sort: number |
|
7 |
} |
|
8 |
|
|
9 |
// 查询列表 |
|
10 |
export const getList = () => { |
|
11 |
return request.get({ url: '/model/mpk/menu/list' }) |
|
12 |
} |
|
13 |
|
1e8d99
|
14 |
// 查询列表 |
潘 |
15 |
export const getTree = () => { |
|
16 |
return request.get({ url: '/model/mpk/menu/tree' }) |
|
17 |
} |
|
18 |
|
aff5c9
|
19 |
// 获得 |
潘 |
20 |
export const getMenu = (id: number) => { |
|
21 |
return request.get({ url: '/model/mpk/menu/get?id=' + id }) |
|
22 |
} |
|
23 |
|
|
24 |
// 新增 |
|
25 |
export const createMenu = (data: MpkIconVO) => { |
|
26 |
return request.post({ url: '/model/mpk/menu/create', data }) |
|
27 |
} |
|
28 |
|
|
29 |
// 修改 |
|
30 |
export const updateMenu = (data: MpkIconVO) => { |
|
31 |
return request.put({ url: '/model/mpk/menu/update', data }) |
|
32 |
} |
|
33 |
|
|
34 |
// 删除 |
|
35 |
export const deleteMenu = (id: string) => { |
|
36 |
return request.delete({ url: '/model/mpk/menu/delete?id=' + id }) |
|
37 |
} |