rewriting

This commit is contained in:
2024-03-29 00:29:35 +03:00
parent 2adfaecabd
commit 9ce9456d50
25 changed files with 226 additions and 478 deletions

View File

@@ -1,12 +0,0 @@
from api.uow.uow_base import UnitOfWork
class UserService:
def __init__(self, uow: UnitOfWork):
self.uow = uow
async def get_all_users(self):
async with self.uow:
res = await self.uow.users.find_all()
return res