14 lines
369 B
Python
14 lines
369 B
Python
from abc import ABC, abstractmethod
|
|
|
|
from src.application.domain.entities.user import WalletEntity
|
|
|
|
|
|
class IWalletRepository(ABC):
|
|
|
|
@abstractmethod
|
|
async def list_by_user(self, user_id: str) -> list[WalletEntity]:
|
|
raise NotImplementedError
|
|
|
|
@abstractmethod
|
|
async def exists_for_user(self, user_id: str) -> bool:
|
|
raise NotImplementedError |