2024-03-04 13:15:28 +03:00
|
|
|
from api.repository.user import UserRepository
|
|
|
|
from api.uow.uow_base import UowBase
|
2024-03-04 07:12:29 +03:00
|
|
|
|
|
|
|
|
|
|
|
class UserService:
|
|
|
|
def __init__(self, user_repository: UserRepository) -> None:
|
2024-03-04 13:15:28 +03:00
|
|
|
self.user_repository = user_repository
|
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.user_repository.get_all_users()
|