feat(account): GET /me user endpoint only, disable cache and extra routers

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-05-12 20:44:35 +03:00
commit d94dd31439
107 changed files with 5083 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
from __future__ import annotations
from abc import ABC
from abc import abstractmethod
from src.application.domain.entities import UserEntity
class IUserRepository(ABC):
@abstractmethod
async def get_user_by_id(self, user_id: str) -> UserEntity:
raise NotImplementedError
@abstractmethod
async def set_phone(self, user_id: str, phone: str) -> UserEntity:
raise NotImplementedError
@abstractmethod
async def set_bank_details(self, user_id: str, **fields: str) -> UserEntity:
raise NotImplementedError
@abstractmethod
async def set_crypto_wallet(self, user_id: str, wallet_address: str) -> UserEntity:
raise NotImplementedError
@abstractmethod
async def get_password_hash(self, user_id: str) -> str:
raise NotImplementedError
@abstractmethod
async def set_password(self, user_id: str, password_hash: str) -> UserEntity:
raise NotImplementedError
@abstractmethod
async def set_email(self, user_id: str, email: str) -> UserEntity:
raise NotImplementedError
@abstractmethod
async def email_exists(self, email: str) -> bool:
raise NotImplementedError