Skip to content

Commit

Permalink
add validation check on PostSaveRequestDto.java #4
Browse files Browse the repository at this point in the history
  • Loading branch information
Mingadinga committed Aug 27, 2022
1 parent de9c016 commit 0db18a1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/com/team20/t4/post/PostSaveRequestDto.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 0db18a1

Please sign in to comment.