feat(be): 유저,가이드 채팅방 제목 관련 로직 추가 #142
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.
ChatRoomService가 UserRepository를 주입받아 방 응답을 만들 때 상대 닉네임을 조회합니다.
ChatRoomResponse DTO에 displayTitle 필드를 추가했습니다. 기본 title은 Guide-12 · User-34 같은 내부식별 값으로 남기고,
프런트는 displayTitle을 바로 UI에 쓰면 됩니다.
ChatRoomController의 /start, /rooms/{id} API가 서비스에서 가공한 displayTitle이 포함된 DTO를 내려주도록 수정했습니다.
통합 테스트(ChatRoomControllerTest)도 요청자별로 displayTitle이 원하는 문자열인지 검증하도록 업데이트했습니다.