service_man/api/service/user.py

11 lines
311 B
Python

from api.repository.user import UserRepository
from api.uow.uow_base import UowBase
class UserService:
def __init__(self, user_repository: UserRepository) -> None:
self.user_repository = user_repository
async def get_all_users(self):
return await self.user_repository.get_all_users()