Skip to content

Commit 1cf4742

Browse files
committed
refactor(community): 커뮤니티 댓글 반환값에 작성자 ID 추가
1 parent 8187ed7 commit 1cf4742

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/com/somemore/domains/community/dto/response/CommunityCommentResponseDto.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,14 @@
88
import java.time.LocalDateTime;
99
import java.util.ArrayList;
1010
import java.util.List;
11+
import java.util.UUID;
1112

1213
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class)
1314
public record CommunityCommentResponseDto(
1415
@Schema(description = "커뮤니티 댓글 ID", example = "1234")
1516
Long id,
17+
@Schema(description = "작성자 ID", example = "123e4567-e89b-12d3-a456-426614174000")
18+
UUID writerId,
1619
@Schema(description = "작성자(봉사자) 닉네임", example = "dkdudab")
1720
String writerNickname,
1821
@Schema(description = "커뮤니티 댓글 내용", example = "저도 함께 하고 싶습니다.")
@@ -39,6 +42,7 @@ public record CommunityCommentResponseDto(
3942
public static CommunityCommentResponseDto from(CommunityCommentView comment) {
4043
return new CommunityCommentResponseDto(
4144
comment.communityComment().getId(),
45+
comment.communityComment().getWriterId(),
4246
comment.writerNickname(),
4347
comment.communityComment().getContent(),
4448
comment.communityComment().getUpdatedAt(),

0 commit comments

Comments
 (0)