提交 c34f92d1 作者: 陈柏江

路由信息返回格式修改(新)

上级 c0a6977e
...@@ -16,15 +16,16 @@ public class RuoYiApplication ...@@ -16,15 +16,16 @@ public class RuoYiApplication
{ {
// System.setProperty("spring.devtools.restart.enabled", "false"); // System.setProperty("spring.devtools.restart.enabled", "false");
SpringApplication.run(RuoYiApplication.class, args); SpringApplication.run(RuoYiApplication.class, args);
System.out.println("(♥◠‿◠)ノ゙ 若依启动成功 ლ(´ڡ`ლ)゙ \n" + System.out.println(
" .-------. ____ __ \n" + "=============== 项目启动成功 ===============\n" +
" | _ _ \\ \\ \\ / / \n" + " _ _ _ \n" +
" | ( ' ) | \\ _. / ' \n" + " | | (_) | \n" +
" |(_ o _) / _( )_ .' \n" + " ___ __ _ __ _ ___ __| | ___ _| |_ \n" +
" | (_,_).' __ ___(_ o _)' \n" + " / __|/ _` |/ _` |/ _ \\/ _` |/ _ \\| | __| \n" +
" | |\\ \\ | || |(_,_)' \n" + " \\__ \\ (_| | (_| | __/ (_| | (_) | | |_ \n" +
" | | \\ `' /| `-' / \n" + " |___/\\__,_|\\__, |\\___|\\__,_|\\___/|_|\\__| \n" +
" | | \\ / \\ / \n" + " __/ | \n" +
" ''-' `'-' `-..-' "); " |___/ \n" +
"==========================================");
} }
} }
...@@ -132,4 +132,18 @@ public class SysLoginController { ...@@ -132,4 +132,18 @@ public class SysLoginController {
List<SysMenu> menus = menuService.selectMenuTreeByUserId(userId); List<SysMenu> menus = menuService.selectMenuTreeByUserId(userId);
return AjaxResult.success(menuService.buildMenus(menus)); return AjaxResult.success(menuService.buildMenus(menus));
} }
/**
* 获取路由信息
*
* @return 路由信息
*/
@GetMapping("getRoutersNew")
public AjaxResult getRoutersNew() {
Long userId = SecurityUtils.getUserId();
List<SysMenu> menus = menuService.selectMenuTreeByUserId(userId);
Map<String, Object> map = new HashMap<>();
map.put("list", menuService.buildMenus(menus));
return AjaxResult.success(map);
}
} }
...@@ -20,5 +20,5 @@ Spring Boot Version: ${spring-boot.version} ...@@ -20,5 +20,5 @@ Spring Boot Version: ${spring-boot.version}
// ========`-.____`-.___\_____/___.-`____.-'======== // // ========`-.____`-.___\_____/___.-`____.-'======== //
// `=---=' // // `=---=' //
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ // // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ //
// 佛祖保佑 永不宕机 永无BUG // // 佛祖保佑 永不宕机 永无BUG //
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论