Skip to content

Commit

Permalink
Merge pull request #121 from IDEA-CAMPUS/feature/mypage
Browse files Browse the repository at this point in the history
Feat: 마이페이지 게시물id 반환값 추가
  • Loading branch information
jisujeong0 authored Jan 16, 2024
2 parents 81b1f23 + 29516aa commit 2900f30
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,20 +67,23 @@ public List<PostRes> getAllMyPosts(Long userId) {

postResList.addAll(projectPosts.stream()
.map(post -> PostRes.builder()
.id(post.getId())
.title(post.getTitle())
.type(post.getClass().getSimpleName())
.createdAt(post.getCreatedAt())
.build())
.toList());
postResList.addAll(clubPosts.stream()
.map(post -> PostRes.builder()
.id(post.getId())
.title(post.getTitle())
.type(post.getClass().getSimpleName())
.createdAt(post.getCreatedAt())
.build())
.toList());
postResList.addAll(ideaPosts.stream()
.map(post -> PostRes.builder()
.id(post.getId())
.title(post.getTitle())
.type(post.getClass().getSimpleName())
.createdAt(post.getCreatedAt())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
@AllArgsConstructor
@Schema(description = "내 게시물 조회 Response")
public class PostRes {
private Long id;
private String title;
private String type;
private LocalDateTime createdAt;
Expand Down

0 comments on commit 2900f30

Please sign in to comment.