From 8d7d29c212001f44c00230b8491a441c241eeade Mon Sep 17 00:00:00 2001 From: dengzedong <dengzedong@email> Date: 星期五, 18 十月 2024 14:05:07 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- src/api/system/menu/index.ts | 31 +++++++++++++++++++++++++++++++ 1 files changed, 31 insertions(+), 0 deletions(-) diff --git a/src/api/system/menu/index.ts b/src/api/system/menu/index.ts index 5a80668..1ed651a 100644 --- a/src/api/system/menu/index.ts +++ b/src/api/system/menu/index.ts @@ -16,6 +16,7 @@ keepAlive: boolean alwaysShow?: boolean createTime: Date + appId: number } // 查询菜单(精简)列表 @@ -23,9 +24,19 @@ return request.get({ url: '/system/menu/simple-list' }) } +// 查询应用菜单(精简)列表 +export const getSimpleAppMenusList = () => { + return request.get({ url: '/system/menu/simple-app-menus' }) +} + // 查询菜单列表 export const getMenuList = (params) => { return request.get({ url: '/system/menu/list', params }) +} + +// 查询应用菜单列表 +export const getAppMenuList = (params) => { + return request.get({ url: '/system/menu/app-menu-list', params }) } // 获取菜单详情 @@ -33,9 +44,19 @@ return request.get({ url: '/system/menu/get?id=' + id }) } +// 获取应用菜单详情 +export const getAppMenu = (id: number) => { + return request.get({ url: '/system/menu/getAppMenu?id=' + id }) +} + // 新增菜单 export const createMenu = (data: MenuVO) => { return request.post({ url: '/system/menu/create', data }) +} + +// 新增应用菜单 +export const createAppMenu = (data: MenuVO) => { + return request.post({ url: '/system/menu/createAppMenu', data }) } // 修改菜单 @@ -43,7 +64,17 @@ return request.put({ url: '/system/menu/update', data }) } +// 修改应用菜单 +export const updateAppMenu = (data: MenuVO) => { + return request.put({ url: '/system/menu/updateAppMenu', data }) +} + // 删除菜单 export const deleteMenu = (id: number) => { return request.delete({ url: '/system/menu/delete?id=' + id }) } + +// 删除应用菜单 +export const deleteAppMenu = (id: number) => { + return request.delete({ url: '/system/menu/deleteAppMenu?id=' + id }) +} -- Gitblit v1.9.3