diff --git a/src/main/java/com/app/bookstore/service/shopping/cart/ShoppingCartService.java b/src/main/java/com/app/bookstore/service/shopping/cart/ShoppingCartService.java index 5cdc6b5..82199a4 100644 --- a/src/main/java/com/app/bookstore/service/shopping/cart/ShoppingCartService.java +++ b/src/main/java/com/app/bookstore/service/shopping/cart/ShoppingCartService.java @@ -7,7 +7,7 @@ import org.springframework.security.core.Authentication; public interface ShoppingCartService { - ShoppingCartResponseDto findByUserId(Long userId); + ShoppingCartResponseDto findByUserId(Long id); void createShoppingCart(User user); @@ -16,7 +16,7 @@ ShoppingCartResponseDto addToShoppingCart(Authentication authentication, ShoppingCartResponseDto updateByCartId( Authentication authentication, - Long cartItemId, + Long id, PutCartItemRequestDto requestDto ); } diff --git a/src/main/java/com/app/bookstore/service/shopping/cart/ShoppingCartServiceImpl.java b/src/main/java/com/app/bookstore/service/shopping/cart/ShoppingCartServiceImpl.java index b2a59eb..65e3924 100644 --- a/src/main/java/com/app/bookstore/service/shopping/cart/ShoppingCartServiceImpl.java +++ b/src/main/java/com/app/bookstore/service/shopping/cart/ShoppingCartServiceImpl.java @@ -21,8 +21,8 @@ public class ShoppingCartServiceImpl implements ShoppingCartService { private final ShoppingCartMapper shoppingCartMapper; @Override - public ShoppingCartResponseDto findByUserId(Long userId) { - return shoppingCartMapper.toDto(shoppingCartRepository.findShoppingCartByUserId(userId)); + public ShoppingCartResponseDto findByUserId(Long id) { + return shoppingCartMapper.toDto(shoppingCartRepository.findShoppingCartByUserId(id)); } @Override