From ee7cd68f7de8af912a20c0e5731706eb6c30fc33 Mon Sep 17 00:00:00 2001 From: Seoyoung2222 Date: Mon, 25 Nov 2024 16:39:55 +0900 Subject: [PATCH] =?UTF-8?q?BE:=20[feat]=20=EB=AF=B8=EB=A6=AC=EB=B3=B4?= =?UTF-8?q?=EA=B8=B0=20postId=20=EB=B0=98=ED=99=98=20#36?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/community/post/dto/PostShowSimpleResponseDto.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/backend/src/main/java/RunningMachines/R2R/domain/community/post/dto/PostShowSimpleResponseDto.java b/src/backend/src/main/java/RunningMachines/R2R/domain/community/post/dto/PostShowSimpleResponseDto.java index 221d2a3..700681b 100644 --- a/src/backend/src/main/java/RunningMachines/R2R/domain/community/post/dto/PostShowSimpleResponseDto.java +++ b/src/backend/src/main/java/RunningMachines/R2R/domain/community/post/dto/PostShowSimpleResponseDto.java @@ -15,6 +15,7 @@ @AllArgsConstructor @Builder public class PostShowSimpleResponseDto { + private Long postId; private String title; private String writer; private LocalDateTime createdAt; @@ -24,6 +25,7 @@ public class PostShowSimpleResponseDto { public static PostShowSimpleResponseDto fromPost(Post post) { return PostShowSimpleResponseDto.builder() + .postId(post.getId()) .title(post.getTitle()) .writer(post.getUser().getNickname()) .createdAt(post.getCreatedAt())