from application.domain.repository.user_repository import UserRepository


class UserService(object):
    repository = UserRepository()

    def find(self, page, user_name):
        return self.repository.find(page, user_name)

    def find_by_id(self, user_id):
        return self.repository.find_by_id(user_id)

    def find_by_mail(self, mail):
        return self.repository.find_by_mail(mail)

    def save(self, user):
        return self.repository.save(user)
