Skip to content

Commit

Permalink
NABI-112-refactor : card - builder thumbnail 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
born-A committed Nov 4, 2023
1 parent 8fa7721 commit 0673836
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0673836

Please sign in to comment.