diff --git a/src/main/java/com/team20/t4/post/PostSaveRequestDto.java b/src/main/java/com/team20/t4/post/PostSaveRequestDto.java index aea2153..b498e33 100644 --- a/src/main/java/com/team20/t4/post/PostSaveRequestDto.java +++ b/src/main/java/com/team20/t4/post/PostSaveRequestDto.java @@ -4,12 +4,17 @@ import lombok.Getter; import lombok.NoArgsConstructor; +import javax.validation.constraints.Size; + @Getter @NoArgsConstructor @AllArgsConstructor public class PostSaveRequestDto { + @Size(max = 255, message = "title은 255자 이하여야합니다.") private String title; + @Size(max = 1000, message = "content는 1000자 이하여야합니다.") private String content; + @Size(max = 255, message = "chatRoomLink는 255자 이하여야합니다.") private String chatRoomLink; // private PlanSaveRequestDto plan; }