菜单管理
This commit is contained in:
33
src/api/user-boot/function.ts
Normal file
33
src/api/user-boot/function.ts
Normal file
@@ -0,0 +1,33 @@
|
||||
import createAxios from '@/utils/request'
|
||||
|
||||
export const functionTree = () => {
|
||||
return createAxios({
|
||||
url: '/user-boot/function/functionTree'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增菜单接口
|
||||
export function add(data: anyObj) {
|
||||
return createAxios({
|
||||
url: '/user-boot/function/add',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改菜单接口
|
||||
export function update(data: anyObj) {
|
||||
return createAxios({
|
||||
url: '/user-boot/function/update',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除菜单接口
|
||||
export function deleteMenu(id: string) {
|
||||
return createAxios({
|
||||
url: '/user-boot/function/delete?id=' + id,
|
||||
method: 'delete',
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user