菜单管理

This commit is contained in:
仲么了
2024-01-18 18:19:59 +08:00
parent 466d377b87
commit d9f5112f81
12 changed files with 479 additions and 802 deletions

View 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',
})
}