diff --git a/backend/src/main/java/mouda/backend/chat/presentation/response/ChatFindDetailResponse.java b/backend/src/main/java/mouda/backend/chat/presentation/response/ChatFindDetailResponse.java index 2b1bf7bc..a9c7196a 100644 --- a/backend/src/main/java/mouda/backend/chat/presentation/response/ChatFindDetailResponse.java +++ b/backend/src/main/java/mouda/backend/chat/presentation/response/ChatFindDetailResponse.java @@ -34,6 +34,6 @@ public static ChatFindDetailResponse toResponse(ChatOwnership chatOwnership) { private static ParticipantResponse getParticipantResponse(ChatOwnership chatOwnership) { Author author = chatOwnership.getChat().getAuthor(); - return new ParticipantResponse(author.getNickname(), author.getProfile()); + return new ParticipantResponse(author.getDarakbangMemberId(), author.getNickname(), author.getProfile()); } } diff --git a/backend/src/main/java/mouda/backend/chat/presentation/response/ChatPreviewResponse.java b/backend/src/main/java/mouda/backend/chat/presentation/response/ChatPreviewResponse.java index eac3eaa4..6928d900 100644 --- a/backend/src/main/java/mouda/backend/chat/presentation/response/ChatPreviewResponse.java +++ b/backend/src/main/java/mouda/backend/chat/presentation/response/ChatPreviewResponse.java @@ -30,7 +30,11 @@ public static ChatPreviewResponse toResponse(ChatPreview chatPreview) { private static List getParticipants(ChatPreview chatPreview) { return chatPreview.getParticipants().stream() - .map(participant -> new ParticipantResponse(participant.getNickname(), participant.getProfile(), participant.getRole())) + .map(participant -> new ParticipantResponse( + participant.getDarakbangMemberId(), + participant.getNickname(), + participant.getProfile(), + participant.getRole())) .toList(); } } diff --git a/backend/src/main/java/mouda/backend/chat/presentation/response/ParticipantResponse.java b/backend/src/main/java/mouda/backend/chat/presentation/response/ParticipantResponse.java index ea1d1ddc..caf4944e 100644 --- a/backend/src/main/java/mouda/backend/chat/presentation/response/ParticipantResponse.java +++ b/backend/src/main/java/mouda/backend/chat/presentation/response/ParticipantResponse.java @@ -1,12 +1,13 @@ package mouda.backend.chat.presentation.response; public record ParticipantResponse( + long darakbangMemberId, String nickname, String profile, String role ) { - public ParticipantResponse(String nickname, String profile) { - this(nickname, profile, null); + public ParticipantResponse(long darakbangMemberId, String nickname, String profile) { + this(darakbangMemberId, nickname, profile, null); } }