feat: token
This commit is contained in:
@@ -24,6 +24,7 @@ public class UserServiceImpl implements UserService {
|
||||
@Override
|
||||
public UserInfoResponse getCurrentUserInfo() {
|
||||
String accountId = StpUtil.getLoginIdAsString();
|
||||
log.info("[用户服务] 获取当前登录用户信息, accountId: {}", accountId);
|
||||
UserEntity user = userRepository.findByAccountId(accountId)
|
||||
.orElseThrow(() -> new BusinessException(ErrorCode.USER_NOT_FOUND));
|
||||
return UserInfoResponse.from(user);
|
||||
|
||||
Reference in New Issue
Block a user