PamGram/core/user/__init__.py
2022-08-06 20:37:52 +08:00

12 lines
317 B
Python

from utils.mysql import MySQL
from utils.service.manager import listener_service
from .repositories import UserRepository
from .services import UserService
@listener_service()
def create_user_service(mysql: MySQL):
_repository = UserRepository(mysql)
_service = UserService(_repository)
return _service