Skip to content

Commit

Permalink
feat: 사용자 이름, 자기소개 문자열 길이 검증
Browse files Browse the repository at this point in the history
  • Loading branch information
SJ70 committed Jul 19, 2024
1 parent 64cd8ed commit b2c8b79
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/main/java/com/j9/bestmoments/dto/request/MemberUpdateDto.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
package com.j9.bestmoments.dto.request;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;

public record MemberUpdateDto (

@NotNull
@NotBlank
@Size(max = 20, message = "이름은 20자 이내로 입력해주세요.")
String name,

@NotNull
@NotBlank
@Size(max = 1000, message = "자기소개는 1000자 이내로 입력해주세요.")
String description

) {

}

0 comments on commit b2c8b79

Please sign in to comment.