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;