test: 실습 2부 내용 반영
This commit is contained in:
20
src/main/java/com/example/demo/post/domain/PostCreate.java
Normal file
20
src/main/java/com/example/demo/post/domain/PostCreate.java
Normal file
@@ -0,0 +1,20 @@
|
||||
package com.example.demo.post.domain;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import lombok.Builder;
|
||||
import lombok.Getter;
|
||||
|
||||
@Getter
|
||||
public class PostCreate {
|
||||
|
||||
private final long writerId;
|
||||
private final String content;
|
||||
|
||||
@Builder
|
||||
public PostCreate(
|
||||
@JsonProperty("writerId") long writerId,
|
||||
@JsonProperty("content") String content) {
|
||||
this.writerId = writerId;
|
||||
this.content = content;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user