| | |
| | | * @param loginBody 登录信息 |
| | | * @return 结果 |
| | | */ |
| | | @ApiOperation(value = "登录", notes = "登录") |
| | | @ApiOperation(value = "登录", notes = "username:hlg password:e10adc3949ba59abbe56e057f20f883e(123456) 密码前端需MD5加密传输") |
| | | @PostMapping("/login") |
| | | public AjaxResult login(@RequestBody LoginBody loginBody) { |
| | | AjaxResult ajax = AjaxResult.success(); |
| | |
| | | * |
| | | * @return 路由信息 |
| | | */ |
| | | @ApiOperation(value = "获取路由信息", notes = "获取路由信息") |
| | | /* @ApiOperation(value = "获取路由信息", notes = "获取路由信息") |
| | | @GetMapping("getRouters") |
| | | public AjaxResult getRouters() { |
| | | Long userId = SecurityUtils.getUserId(); |
| | | List<SysMenu> menus = menuService.selectMenuTreeByUserId(userId); |
| | | return AjaxResult.success(menuService.buildMenus(menus)); |
| | | } |
| | | }*/ |
| | | |
| | | /** |
| | | * 退出登录 |