Skip to content

Commit

Permalink
Merge pull request CSID-DGU#93 from Seoyoung2222/backend/feature/comm…
Browse files Browse the repository at this point in the history
…unity

BE: [feat] 미리보기 postId 반환 CSID-DGU#36
  • Loading branch information
Seoyoung2222 authored Nov 25, 2024
2 parents a4ad60c + ee7cd68 commit 7fe5434
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 7fe5434

Please sign in to comment.