From 4b877749049a6944b045223d3dd4f08684d95b3f Mon Sep 17 00:00:00 2001 From: BK Date: Thu, 7 Dec 2023 00:30:33 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20emoji=20=EB=95=8C=EB=AC=B8=EC=97=90=20?= =?UTF-8?q?=EA=B8=80=20=EA=B8=B8=EC=9D=B4=20=EC=A0=9C=ED=95=9C=EC=9D=80=20?= =?UTF-8?q?=ED=94=84=EB=A1=A0=ED=8A=B8=EB=A1=9C=20=EB=84=98=EA=B9=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/igoMoney/BE/dto/request/ChallengeCreateRequest.java | 4 ---- .../java/igoMoney/BE/dto/request/NicknameChangeRequest.java | 2 -- src/main/java/igoMoney/BE/dto/request/RecordSaveRequest.java | 3 --- .../java/igoMoney/BE/dto/request/RecordUpdateRequest.java | 4 +--- 4 files changed, 1 insertion(+), 12 deletions(-) diff --git a/src/main/java/igoMoney/BE/dto/request/ChallengeCreateRequest.java b/src/main/java/igoMoney/BE/dto/request/ChallengeCreateRequest.java index 4194886..0c27369 100644 --- a/src/main/java/igoMoney/BE/dto/request/ChallengeCreateRequest.java +++ b/src/main/java/igoMoney/BE/dto/request/ChallengeCreateRequest.java @@ -2,8 +2,6 @@ import lombok.*; -import jakarta.validation.constraints.Size; - import java.time.LocalDate; @Getter @@ -14,9 +12,7 @@ public class ChallengeCreateRequest { private Long userId; - @Size(min=5, max=15) private String title; - @Size(max=300) private String content; private Integer targetAmount; private Integer categoryId; diff --git a/src/main/java/igoMoney/BE/dto/request/NicknameChangeRequest.java b/src/main/java/igoMoney/BE/dto/request/NicknameChangeRequest.java index 5b10246..5be1905 100644 --- a/src/main/java/igoMoney/BE/dto/request/NicknameChangeRequest.java +++ b/src/main/java/igoMoney/BE/dto/request/NicknameChangeRequest.java @@ -2,7 +2,6 @@ import jakarta.validation.constraints.NotBlank; import jakarta.validation.constraints.NotNull; -import jakarta.validation.constraints.Pattern; import lombok.*; @Getter @@ -15,6 +14,5 @@ public class NicknameChangeRequest { @NotNull private Long userId; @NotBlank(message = "닉네임은 공백일 수 없습니다.") - @Pattern(regexp = "^[^\n\t\r\f]{3,8}$", message = "닉네임은 \\t, \\r, \\n, \\f 제외 최소3자 최대 8자여야 합니다.") private String nickname; } diff --git a/src/main/java/igoMoney/BE/dto/request/RecordSaveRequest.java b/src/main/java/igoMoney/BE/dto/request/RecordSaveRequest.java index 7000550..b694872 100644 --- a/src/main/java/igoMoney/BE/dto/request/RecordSaveRequest.java +++ b/src/main/java/igoMoney/BE/dto/request/RecordSaveRequest.java @@ -1,7 +1,6 @@ package igoMoney.BE.dto.request; import jakarta.validation.constraints.NotNull; -import jakarta.validation.constraints.Size; import lombok.*; import org.springframework.web.multipart.MultipartFile; @@ -18,9 +17,7 @@ public class RecordSaveRequest { private Long challengeId; @NotNull private Long userId; - @NotNull @Size(min=5, max=15) private String title; - @Size(max=300) private String content; private Integer cost; private List image; diff --git a/src/main/java/igoMoney/BE/dto/request/RecordUpdateRequest.java b/src/main/java/igoMoney/BE/dto/request/RecordUpdateRequest.java index 8aa15a1..e0d576f 100644 --- a/src/main/java/igoMoney/BE/dto/request/RecordUpdateRequest.java +++ b/src/main/java/igoMoney/BE/dto/request/RecordUpdateRequest.java @@ -1,7 +1,6 @@ package igoMoney.BE.dto.request; import jakarta.validation.constraints.NotNull; -import jakarta.validation.constraints.Size; import lombok.*; import org.springframework.web.multipart.MultipartFile; @@ -16,9 +15,8 @@ public class RecordUpdateRequest { @NotNull private Long recordId; - @NotNull @Size(min=5, max=15) + @NotNull private String title; - @Size(max=300) private String content; private Integer cost; private List image;