diff --git a/src/main/java/org/kakaoshare/backend/domain/cart/dto/inquiry/CartResponse.java b/src/main/java/org/kakaoshare/backend/domain/cart/dto/inquiry/CartResponse.java index dc15fe20..7d967617 100644 --- a/src/main/java/org/kakaoshare/backend/domain/cart/dto/inquiry/CartResponse.java +++ b/src/main/java/org/kakaoshare/backend/domain/cart/dto/inquiry/CartResponse.java @@ -21,6 +21,7 @@ public class CartResponse { private String optionName; private String optionDetailName; private Long totalPrice; + private boolean isSelected; public static CartResponse from(Cart cart){ Long totalPrice = cart.calculateTotalPrice(); @@ -38,6 +39,7 @@ public static CartResponse from(Cart cart){ .totalPrice(totalPrice) .optionName(cart.getOption() != null ? cart.getOption().getName() : null) .optionDetailName(cart.getOptionDetail() != null ? cart.getOptionDetail().getName() : null) + .isSelected(cart.isSelected()) .build(); } }