Skip to content

Commit

Permalink
Merge pull request CSID-DGU#94 from CSID-DGU/backend/feature/community
Browse files Browse the repository at this point in the history
BE: [feat] 미리보기 postId 반환
  • Loading branch information
Seoyoung2222 authored Nov 25, 2024
2 parents 8468597 + 7fe5434 commit b2ac9d7
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
@AllArgsConstructor
@Builder
public class PostShowSimpleResponseDto {
private Long postId;
private String title;
private String writer;
private LocalDateTime createdAt;
Expand All @@ -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())
Expand Down

0 comments on commit b2ac9d7

Please sign in to comment.