增加websocket
This commit is contained in:
@@ -109,4 +109,8 @@ public class UserService implements UserDetailsService {
|
||||
return Result.ok().message("change password success");
|
||||
}
|
||||
}
|
||||
|
||||
public User getUserByUserId(String userId) {
|
||||
return userRepository.findUserByUserId(userId).orElseThrow(() -> new RuntimeException("User not found with userId: " + userId));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user