From b2c8b79adfa4645fe3edc6d810b6029d702a851a Mon Sep 17 00:00:00 2001 From: SJ70 Date: Fri, 19 Jul 2024 17:49:02 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=82=AC=EC=9A=A9=EC=9E=90=20=EC=9D=B4?= =?UTF-8?q?=EB=A6=84,=20=EC=9E=90=EA=B8=B0=EC=86=8C=EA=B0=9C=20=EB=AC=B8?= =?UTF-8?q?=EC=9E=90=EC=97=B4=20=EA=B8=B8=EC=9D=B4=20=EA=B2=80=EC=A6=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../j9/bestmoments/dto/request/MemberUpdateDto.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/main/java/com/j9/bestmoments/dto/request/MemberUpdateDto.java b/src/main/java/com/j9/bestmoments/dto/request/MemberUpdateDto.java index bb89d22..696a304 100644 --- a/src/main/java/com/j9/bestmoments/dto/request/MemberUpdateDto.java +++ b/src/main/java/com/j9/bestmoments/dto/request/MemberUpdateDto.java @@ -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 + ) { }