diff --git a/ideac-user/src/main/java/depth/main/ideac/domain/my_page/application/MyPageService.java b/ideac-user/src/main/java/depth/main/ideac/domain/my_page/application/MyPageService.java index 3c67a6c..6101a97 100644 --- a/ideac-user/src/main/java/depth/main/ideac/domain/my_page/application/MyPageService.java +++ b/ideac-user/src/main/java/depth/main/ideac/domain/my_page/application/MyPageService.java @@ -67,6 +67,7 @@ public List getAllMyPosts(Long userId) { postResList.addAll(projectPosts.stream() .map(post -> PostRes.builder() + .id(post.getId()) .title(post.getTitle()) .type(post.getClass().getSimpleName()) .createdAt(post.getCreatedAt()) @@ -74,6 +75,7 @@ public List getAllMyPosts(Long userId) { .toList()); postResList.addAll(clubPosts.stream() .map(post -> PostRes.builder() + .id(post.getId()) .title(post.getTitle()) .type(post.getClass().getSimpleName()) .createdAt(post.getCreatedAt()) @@ -81,6 +83,7 @@ public List getAllMyPosts(Long userId) { .toList()); postResList.addAll(ideaPosts.stream() .map(post -> PostRes.builder() + .id(post.getId()) .title(post.getTitle()) .type(post.getClass().getSimpleName()) .createdAt(post.getCreatedAt()) diff --git a/ideac-user/src/main/java/depth/main/ideac/domain/my_page/dto/response/PostRes.java b/ideac-user/src/main/java/depth/main/ideac/domain/my_page/dto/response/PostRes.java index f3153fa..d53ada7 100644 --- a/ideac-user/src/main/java/depth/main/ideac/domain/my_page/dto/response/PostRes.java +++ b/ideac-user/src/main/java/depth/main/ideac/domain/my_page/dto/response/PostRes.java @@ -11,6 +11,7 @@ @AllArgsConstructor @Schema(description = "내 게시물 조회 Response") public class PostRes { + private Long id; private String title; private String type; private LocalDateTime createdAt;