Files
adminka/src/application/abstractions/repositories/i_wallets_repository.py
2026-06-11 18:46:21 +03:00

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