PaiGram/apps/user/__init__.py

12 lines
314 B
Python
Raw Normal View History

2022-08-05 11:14:29 +00:00
from utils.apps.manager import listener_service
2022-07-26 10:07:31 +00:00
from utils.mysql import MySQL
2022-08-05 11:14:29 +00:00
from .repositories import UserRepository
from .services import UserService
2022-07-26 10:07:31 +00:00
@listener_service()
def create_user_service(mysql: MySQL):
_repository = UserRepository(mysql)
_service = UserService(_repository)
return _service