更新了写真预约特殊产品处理
This commit is contained in:
parent
add07d4931
commit
0ce08e16c5
|
@ -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<UserVO> 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<User> getWebLoginUser(HttpServletRequest request) {
|
||||
User user = userService.getLoginUser(request);
|
||||
return ResultUtils.success(user);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 更新个人信息
|
||||
|
|
Loading…
Reference in New Issue
Block a user