Skip to content

Commit

Permalink
[feat] #5 게시물 생성 응답 record dto 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
SunwoongH committed Nov 9, 2023
1 parent 6718b84 commit 51aa4ee
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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());
}
}

0 comments on commit 51aa4ee

Please sign in to comment.