uow and di basic implementation

This commit is contained in:
2024-03-06 03:59:16 +03:00
parent 8d93c964e1
commit f9631a712b
11 changed files with 50 additions and 19 deletions

View File

@@ -7,4 +7,6 @@ class UserService:
async def get_all_users(self):
async with self.uow:
await self.uow.users.find_all()
res = await self.uow.users.find_all()
return res