use of com.vip.saturn.job.console.mybatis.entity.User in project Saturn by vipshop.
the class AuthorizationManageServiceImpl method validateUser.
protected void validateUser(UserRole userRole) throws SaturnJobConsoleException {
String userName = userRole.getUserName();
User user = userRepository.selectWithNotFilterDeleted(userName);
if (user == null) {
throw new SaturnJobConsoleException(String.format("用户名(%s)不存在", userName));
}
}
use of com.vip.saturn.job.console.mybatis.entity.User in project Saturn by vipshop.
the class AuthorizationController method getLoginUser.
@ApiResponses(value = { @ApiResponse(code = 200, message = "Success/Fail", response = RequestResult.class) })
@GetMapping("/loginUser")
public SuccessResponseEntity getLoginUser(HttpSession httpSession) throws SaturnJobConsoleException {
String currentLoginUserName = getCurrentLoginUserName();
User user = authorizationService.getUser(currentLoginUserName);
return new SuccessResponseEntity(user);
}
Aggregations