service_man/api/repository/user.py

10 lines
212 B
Python
Raw Normal View History

2024-03-04 13:15:28 +03:00
from api.uow.uow_base import UowBase
2024-03-04 07:12:29 +03:00
class UserRepository:
2024-03-04 13:15:28 +03:00
def __init__(self, uow: UowBase) -> None:
self.uow = uow
2024-03-04 07:12:29 +03:00
2024-03-04 13:15:28 +03:00
async def get_all_users(self):
return await self.uow.get_all_users()