chore(menu): 菜单路径调整
This commit is contained in:
@@ -216,7 +216,7 @@ INSERT INTO `sys_menu` VALUES (147, 36, '0,36', '滚动文本', 1, 'TextScroll',
|
|||||||
INSERT INTO `sys_menu` VALUES (148, 89, '0,89', '字典实时同步', 1, 'DictSync', 'dict-sync', 'demo/dict-sync', NULL, NULL, NULL, 1, 3, '', '', now(), now(), NULL);
|
INSERT INTO `sys_menu` VALUES (148, 89, '0,89', '字典实时同步', 1, 'DictSync', 'dict-sync', 'demo/dict-sync', NULL, NULL, NULL, 1, 3, '', '', now(), now(), NULL);
|
||||||
INSERT INTO `sys_menu` VALUES (149, 89, '0,89', 'VxeTable', 1, 'VxeTable', 'vxe-table', 'demo/vxe-table/index', NULL, NULL, 1, 1, 0, 'el-icon-MagicStick', '', now(), now(), NULL);
|
INSERT INTO `sys_menu` VALUES (149, 89, '0,89', 'VxeTable', 1, 'VxeTable', 'vxe-table', 'demo/vxe-table/index', NULL, NULL, 1, 1, 0, 'el-icon-MagicStick', '', now(), now(), NULL);
|
||||||
INSERT INTO `sys_menu` VALUES (150, 36, '0,36', '自适应表格操作列', 1, 'AutoOperationColumn', 'operation-column', 'demo/auto-operation-column', NULL, NULL, 1, 1, 1, '', '', now(), now(), NULL);
|
INSERT INTO `sys_menu` VALUES (150, 36, '0,36', '自适应表格操作列', 1, 'AutoOperationColumn', 'operation-column', 'demo/auto-operation-column', NULL, NULL, 1, 1, 1, '', '', now(), now(), NULL);
|
||||||
INSERT INTO `sys_menu` VALUES (151, 89, '0,89', 'CURD单文件', 1, 'CurdDemo', 'curd-demo', 'demo/curd-single', NULL, NULL, 1, 1, 7, 'el-icon-Reading', '', now(),now(), NULL);
|
INSERT INTO `sys_menu` VALUES (151, 89, '0,89', 'CURD单文件', 1, 'CurdSingle', 'curd-single', 'demo/curd-single', NULL, NULL, 1, 1, 7, 'el-icon-Reading', '', now(),now(), NULL);
|
||||||
|
|
||||||
|
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
|
|||||||
@@ -60,16 +60,6 @@ public class MenuController {
|
|||||||
return Result.success(routeList);
|
return Result.success(routeList);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Operation(summary = "获取指定数据源的菜单路由列表")
|
|
||||||
@GetMapping("/routes/{datasource}")
|
|
||||||
public Result<List<RouteVO>> getCurrentUserRoutesByDatasource(
|
|
||||||
@Parameter(description = "数据源名称,如:master(主库)、naiveui(NaiveUI数据库)、template(模板数据库)")
|
|
||||||
@PathVariable String datasource
|
|
||||||
) {
|
|
||||||
List<RouteVO> routeList = menuService.listCurrentUserRoutes(datasource);
|
|
||||||
return Result.success(routeList);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Operation(summary = "菜单表单数据")
|
@Operation(summary = "菜单表单数据")
|
||||||
@GetMapping("/{id}/form")
|
@GetMapping("/{id}/form")
|
||||||
@PreAuthorize("@ss.hasPerm('sys:menu:edit')")
|
@PreAuthorize("@ss.hasPerm('sys:menu:edit')")
|
||||||
|
|||||||
Reference in New Issue
Block a user