增加websocket

This commit is contained in:
2025-08-08 20:12:46 +08:00
parent 411b7d69d3
commit 503b44d92d
17 changed files with 391 additions and 55 deletions

View File

@@ -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));
}
}