Skip to content

Commit

Permalink
Merge pull request #203 from Modagbul/main
Browse files Browse the repository at this point in the history
  • Loading branch information
seungueonn authored Jan 18, 2024
2 parents 5d40149 + 53123ed commit beb289b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
@Getter
public class CreateBoardRequest {
@NotBlank(message = "title 을 입력해 주세요.")
@Size(min = 1, max = 15, message = "title 은 최소 1개, 최대 15개의 문자만 입력 가능합니다.")
@Size(min = 0, max = 15, message = "제목 글자수를 초과했습니다.")
private String title;

@NotBlank(message = "content 을 입력해 주세요.")
@Size(min = 1, max = 300, message = "content 은 최소 1개, 최대 10개의 문자만 입력 가능합니다.")
@Size(min = 0, max = 300, message = "내용 글자수를 초과했습니다.")
private String content;

@NotNull(message = "notice 사용 여부(isNotice) 를 입력해 주세요.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,16 @@
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@AllArgsConstructor
@Builder
@NoArgsConstructor
@Getter
public class CreateBoardCommentRequest {

@NotBlank(message = "content 을 입력해 주세요.")
@Size(min = 0, max = 300, message = "댓글 글자수를 초과했습니다.")
private String content;
}

Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public CommentBlocks(Long boardCommentId, String content, String writerNickName,

public void deleteMember() {
if (Boolean.TRUE.equals(writerIsDeleted)) {
this.makerId = null;
this.makerId = 0L;
this.writerNickName = "(알 수 없음)";
this.writerProfileImage = null;
}
Expand Down

0 comments on commit beb289b

Please sign in to comment.