From 51aa4ee100fc8be7a8abadeab9419bf5dfba2484 Mon Sep 17 00:00:00 2001 From: sunwoong Date: Thu, 9 Nov 2023 15:50:24 +0900 Subject: [PATCH] =?UTF-8?q?[feat]=20#5=20=EA=B2=8C=EC=8B=9C=EB=AC=BC=20?= =?UTF-8?q?=EC=83=9D=EC=84=B1=20=EC=9D=91=EB=8B=B5=20record=20dto=20?= =?UTF-8?q?=EA=B5=AC=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/post/dto/response/PostSaveResponse.java | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/main/java/org/sopt/seminar/domain/post/dto/response/PostSaveResponse.java diff --git a/src/main/java/org/sopt/seminar/domain/post/dto/response/PostSaveResponse.java b/src/main/java/org/sopt/seminar/domain/post/dto/response/PostSaveResponse.java new file mode 100644 index 0000000..14b1771 --- /dev/null +++ b/src/main/java/org/sopt/seminar/domain/post/dto/response/PostSaveResponse.java @@ -0,0 +1,11 @@ +package org.sopt.seminar.domain.post.dto.response; + +import org.sopt.seminar.domain.post.domain.Post; + +public record PostSaveResponse( + Long postId +) { + public static PostSaveResponse of(Post post) { + return new PostSaveResponse(post.getId()); + } +}