uow and di basic implementation

This commit is contained in:
2024-03-06 02:28:59 +03:00
parent 402daf63d1
commit 8d93c964e1
21 changed files with 217 additions and 100 deletions

View File

@@ -1,9 +1,6 @@
from api.uow.uow_base import UowBase
from api.model.user import User
from api.uow.repository import SQLAlchemyRepository
class UserRepository:
def __init__(self, uow: UowBase) -> None:
self.uow = uow
async def get_all_users(self):
return await self.uow.get_all_users()
class UserRepository(SQLAlchemyRepository):
model = User