File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
src/main/java/com/somemore/domains/community/dto/response Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 88import java .time .LocalDateTime ;
99import java .util .ArrayList ;
1010import java .util .List ;
11+ import java .util .UUID ;
1112
1213@ JsonNaming (PropertyNamingStrategies .SnakeCaseStrategy .class )
1314public 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 (),
You can’t perform that action at this time.
0 commit comments