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())