diff --git a/src/main/java/com/cultural/heritage/controller/user/UserController.java b/src/main/java/com/cultural/heritage/controller/user/UserController.java index 286c4da..473860e 100644 --- a/src/main/java/com/cultural/heritage/controller/user/UserController.java +++ b/src/main/java/com/cultural/heritage/controller/user/UserController.java @@ -139,18 +139,32 @@ public class UserController { /** - * 小程序端(Web端)用户获取登录信息 + * 小程序端用户获取登录信息 * @param request http * @return 用户登录信息 */ @GetMapping("/get/login") - @Operation(summary = "小程序端(Web端)用户获取登录信息", description = "参数:无,权限:所有人, 方法名:getLoginUser") + @Operation(summary = "小程序端用户获取登录信息", description = "参数:无,权限:所有人, 方法名:getLoginUser") public BaseResponse getLoginUser(HttpServletRequest request) { User user = userService.getLoginUser(request); return ResultUtils.success(userService.getUserVO(user)); } + /** + * web端用户获取登录信息 + * @param request http + * @return 用户登录信息 + */ + @GetMapping("/get/web/login") + @Operation(summary = "web端用户获取登录信息", description = "参数:无,权限:所有人, 方法名:getWebLoginUser") + @AuthCheck(mustRole = UserConstant.ADMIN_ROLE) + public BaseResponse getWebLoginUser(HttpServletRequest request) { + User user = userService.getLoginUser(request); + return ResultUtils.success(user); + } + + /** * 更新个人信息