Skip to content

Conversation

@beekeeper24
Copy link
Collaborator

  • ChatRoomService가 UserRepository를 주입받아 방 응답을 만들 때 상대 닉네임을 조회합니다.

    • loadUsersFor로 방에 포함된 가이드/유저 ID를 한 번에 가져와 캐시에 담고,
    • buildDisplayTitle에서 “요청자가 가이드면 유저 닉네임, 유저면 가이드 닉네임”을 선택해 "{닉네임}님과의 채팅" 문자열을 생성합니다
  • ChatRoomResponse DTO에 displayTitle 필드를 추가했습니다. 기본 title은 Guide-12 · User-34 같은 내부식별 값으로 남기고,
    프런트는 displayTitle을 바로 UI에 쓰면 됩니다.

  • ChatRoomController의 /start, /rooms/{id} API가 서비스에서 가공한 displayTitle이 포함된 DTO를 내려주도록 수정했습니다.

  • 통합 테스트(ChatRoomControllerTest)도 요청자별로 displayTitle이 원하는 문자열인지 검증하도록 업데이트했습니다.

@beekeeper24 beekeeper24 self-assigned this Oct 14, 2025
@beekeeper24 beekeeper24 merged commit 252a2eb into main Oct 14, 2025
1 check passed
@beekeeper24 beekeeper24 deleted the feat/be/9 branch October 14, 2025 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants