Skip to content

Commit

Permalink
feat: postId 함께 응답
Browse files Browse the repository at this point in the history
  • Loading branch information
firefox1234123 committed Aug 6, 2024
1 parent f4b13c1 commit 521ce60
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

@Builder
public record PostInfoResDto(
Long postId,
String title,
String content,
String imgUrl,
Expand All @@ -24,6 +25,7 @@ public record PostInfoResDto(
) {
public static PostInfoResDto from(Post post) {
return PostInfoResDto.builder()
.postId(post.getPostId())
.title(post.getTitle())
.content(post.getContent())
.location(post.getLocation())
Expand Down

0 comments on commit 521ce60

Please sign in to comment.