From 2f544d65bb778fd9ca6f91baf6cafeea3836552c Mon Sep 17 00:00:00 2001 From: WonyuChoi Date: Sat, 19 Oct 2024 14:45:38 +0900 Subject: [PATCH] =?UTF-8?q?FLASH-307=20feat:=20=EC=8B=A0=EA=B3=A0=20?= =?UTF-8?q?=EC=BB=A8=ED=85=90=EC=B8=A0=20=EC=9C=A0=ED=98=95=EC=9D=84=20?= =?UTF-8?q?=EC=84=A0=ED=83=9D=ED=95=98=EC=A7=80=20=EC=95=8A=EC=9C=BC?= =?UTF-8?q?=EB=A9=B4=20=ED=95=B4=EC=84=A4=20=EC=8B=A0=EA=B3=A0=EB=A1=9C=20?= =?UTF-8?q?=EA=B0=84=EC=A3=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../member/application/dto/MemberReportRequest.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/first/flash/account/member/application/dto/MemberReportRequest.java b/src/main/java/com/first/flash/account/member/application/dto/MemberReportRequest.java index d9199d5b..db564259 100644 --- a/src/main/java/com/first/flash/account/member/application/dto/MemberReportRequest.java +++ b/src/main/java/com/first/flash/account/member/application/dto/MemberReportRequest.java @@ -3,9 +3,12 @@ import com.first.flash.account.member.domain.ContentType; import com.first.flash.global.annotation.ValidEnum; import jakarta.validation.constraints.NotEmpty; -import jakarta.validation.constraints.NotNull; public record MemberReportRequest(@NotEmpty(message = "신고 사유는 필수입니다.") String reason, - @NotNull(message = "콘텐츠 타입은 필수입니다.") @ValidEnum(enumClass = ContentType.class) ContentType contentType) { + @ValidEnum(enumClass = ContentType.class) ContentType contentType) { + public MemberReportRequest(final String reason, final ContentType contentType) { + this.reason = reason; + this.contentType = contentType != null ? contentType : ContentType.SOLUTION; + } }