From 7b9905cfc420c64b86bfa0b510149b32c3687144 Mon Sep 17 00:00:00 2001 From: ChaeAg Date: Wed, 25 Sep 2024 23:27:50 +0900 Subject: [PATCH 1/2] =?UTF-8?q?[REMOVE]=20=EC=A4=91=EB=B3=B5=EB=90=9C=20?= =?UTF-8?q?=EB=A9=94=EC=84=9C=EB=93=9C=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/org/websoso/WSSServer/service/BlockService.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/main/java/org/websoso/WSSServer/service/BlockService.java b/src/main/java/org/websoso/WSSServer/service/BlockService.java index 1cf37648e..b4dfbe216 100644 --- a/src/main/java/org/websoso/WSSServer/service/BlockService.java +++ b/src/main/java/org/websoso/WSSServer/service/BlockService.java @@ -72,9 +72,4 @@ public void deleteBlock(User user, Long blockId) { public boolean isBlocked(Long blockingId, Long blockedId) { return blockRepository.existsByBlockingIdAndBlockedId(blockingId, blockedId); } - - public boolean isBlocked(Long blockingId, Long blockedId) { - return blockRepository.existsByBlockingIdAndBlockedId(blockingId, blockedId); - } - } From b93b65a3deb3cce2a99aa7c5136aa1024c71af16 Mon Sep 17 00:00:00 2001 From: ChaeAg Date: Wed, 25 Sep 2024 23:47:47 +0900 Subject: [PATCH 2/2] =?UTF-8?q?[FIX]=20=EB=8C=93=EA=B8=80=20=EC=97=94?= =?UTF-8?q?=ED=8B=B0=ED=8B=B0=20=EB=82=B4=EC=9A=A9=20=EA=B8=80=EC=9E=90?= =?UTF-8?q?=EC=88=98=20=EC=A0=9C=ED=95=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/org/websoso/WSSServer/domain/Comment.java | 2 +- .../org/websoso/WSSServer/dto/comment/CommentCreateRequest.java | 2 +- .../org/websoso/WSSServer/dto/comment/CommentUpdateRequest.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/websoso/WSSServer/domain/Comment.java b/src/main/java/org/websoso/WSSServer/domain/Comment.java index 6d932b870..fa82913e8 100644 --- a/src/main/java/org/websoso/WSSServer/domain/Comment.java +++ b/src/main/java/org/websoso/WSSServer/domain/Comment.java @@ -35,7 +35,7 @@ public class Comment extends BaseEntity { @Column(columnDefinition = "Boolean default false", nullable = false) private Boolean isHidden; - @Column(columnDefinition = "varchar(100)", nullable = false) + @Column(columnDefinition = "varchar(500)", nullable = false) private String commentContent; @Column(nullable = false) diff --git a/src/main/java/org/websoso/WSSServer/dto/comment/CommentCreateRequest.java b/src/main/java/org/websoso/WSSServer/dto/comment/CommentCreateRequest.java index 905d2342e..4741d2bb0 100644 --- a/src/main/java/org/websoso/WSSServer/dto/comment/CommentCreateRequest.java +++ b/src/main/java/org/websoso/WSSServer/dto/comment/CommentCreateRequest.java @@ -5,7 +5,7 @@ public record CommentCreateRequest( @NotBlank(message = "댓글 내용은 null 이거나, 공백일 수 없습니다.") - @Size(max = 100, message = "댓글 내용은 100자를 초과할 수 없습니다.") + @Size(max = 500, message = "댓글 내용은 500자를 초과할 수 없습니다.") String commentContent ) { } diff --git a/src/main/java/org/websoso/WSSServer/dto/comment/CommentUpdateRequest.java b/src/main/java/org/websoso/WSSServer/dto/comment/CommentUpdateRequest.java index 6f0f88067..bf897c0dc 100644 --- a/src/main/java/org/websoso/WSSServer/dto/comment/CommentUpdateRequest.java +++ b/src/main/java/org/websoso/WSSServer/dto/comment/CommentUpdateRequest.java @@ -5,7 +5,7 @@ public record CommentUpdateRequest( @NotBlank(message = "댓글 내용은 null 이거나, 공백일 수 없습니다.") - @Size(max = 100, message = "댓글 내용은 100자를 초과할 수 없습니다.") + @Size(max = 500, message = "댓글 내용은 500자를 초과할 수 없습니다.") String commentContent ) { }