From 06738361e8b6bd4213d24573fe86776ee771375d Mon Sep 17 00:00:00 2001 From: born-A <93516595+born-A@users.noreply.github.com> Date: Sat, 4 Nov 2023 21:20:07 +0900 Subject: [PATCH] =?UTF-8?q?NABI-112-refactor=20:=20card=20-=20builder=20th?= =?UTF-8?q?umbnail=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../prgrms/nabimarketbe/domain/card/entity/Card.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/main/java/org/prgrms/nabimarketbe/domain/card/entity/Card.java b/src/main/java/org/prgrms/nabimarketbe/domain/card/entity/Card.java index c6d6c73e..3e2c3f01 100644 --- a/src/main/java/org/prgrms/nabimarketbe/domain/card/entity/Card.java +++ b/src/main/java/org/prgrms/nabimarketbe/domain/card/entity/Card.java @@ -69,25 +69,23 @@ public class Card extends BaseEntity { private Item item; @Builder - public Card( + private Card( String cardTitle, - String thumbNailImage, String content, String tradeArea, Boolean poke, TradeType tradeType, Item item ) { -// if (cardTitle.isBlank() || thumbNailImage.isBlank() || content.isBlank() || tradeArea.isBlank()) { -// throw new BaseException(ErrorCode.UNKNOWN); -// } + if (cardTitle.isBlank() || content.isBlank() || tradeArea.isBlank()) { + throw new BaseException(ErrorCode.UNKNOWN); + } if (poke == null || tradeType == null || item == null) { throw new BaseException(ErrorCode.UNKNOWN); } this.cardTitle = cardTitle; -// this.thumbNailImage = thumbNailImage; this.content = content; this.tradeArea = tradeArea; this.poke = poke;