From 4071b1201aaa3b7050dfd56b629e1f55f747b43e Mon Sep 17 00:00:00 2001 From: zhouhao Date: Sun, 9 Apr 2017 00:10:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=9F=A5=E7=9C=8B=E5=BD=93?= =?UTF-8?q?=E5=89=8D=E7=99=BB=E5=BD=95=E7=94=A8=E6=88=B7=E7=9A=84=E6=9D=83?= =?UTF-8?q?=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../authorization/AuthorizationController.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/hsweb-system/hsweb-system-authorization/hsweb-system-authorization-controller/src/main/java/org/hswebframework/web/controller/authorization/AuthorizationController.java b/hsweb-system/hsweb-system-authorization/hsweb-system-authorization-controller/src/main/java/org/hswebframework/web/controller/authorization/AuthorizationController.java index 47036b01e..460c96131 100644 --- a/hsweb-system/hsweb-system-authorization/hsweb-system-authorization-controller/src/main/java/org/hswebframework/web/controller/authorization/AuthorizationController.java +++ b/hsweb-system/hsweb-system-authorization/hsweb-system-authorization-controller/src/main/java/org/hswebframework/web/controller/authorization/AuthorizationController.java @@ -55,7 +55,6 @@ public class AuthorizationController { private AuthorizationListenerDispatcher authorizationListenerDispatcher; @GetMapping("/login-out") - @AccessLogger("退出登录") @Authorize @ApiOperation("退出当前登录") public ResponseMessage exit(@ApiParam(hidden = true) Authentication authentication) { @@ -63,8 +62,14 @@ public class AuthorizationController { return ok(); } + @GetMapping("/me") + @Authorize + @ApiOperation("当前登录用户权限信息") + public ResponseMessage me(@ApiParam(hidden = true) Authentication authentication) { + return ok(authentication); + } + @PostMapping(value = "/login") - @AccessLogger("授权") @ApiOperation("用户名密码登录") public ResponseMessage authorize(@RequestParam @ApiParam("用户名") String username, @RequestParam @ApiParam("密码") String password,