|
from typing import Optional, List
|
|
|
|
class ICartRepository:
|
|
def get_cart_by_user_id(self, user_id: int) -> Optional[List[dict]]:
|
|
"""
|
|
Abstract method to fetch cart data by user ID.
|
|
"""
|
|
raise NotImplementedError("get_cart_by_user_id must be implemented by a subclass")
|