Feat: 스터디룸 채팅 구현 마무리 (#48) #61
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📌 개요
스터디룸 채팅 기능의 안정성과 효율성을 높이기 위해 JWT 인증을 도입하고, 메시지 조회 로직을 QueryDSL로 개선했습니다.
기능 변경에 따른 테스트 코드와 API 문서를 추가하여 완성도를 높였습니다.
🔨 작업 내용
1. JWT 인증 로직 추가
@AuthenticationPrincipal을 적용하여 인증된 사용자만 API를 호출할 수 있도록 변경.Principal객체에서 사용자 정보를 추출하여, 인증된 사용자의 채팅 메시지만 처리하도록 구현.2. QueryDSL을 이용한 조회 성능 개선
before파라미터를 이용한 이전 메시지 조회(무한 스크롤) 기능 구현. (기존 TODO 해결)3. 기타 개선 사항
Swagger어노테이션을 추가하여 API 명세를 명확하게 정리.🔗 관련 이슈
Closes #48
📝 참고 사항
향후 작업 예정
✅ 체크리스트