mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-16 12:51:35 +00:00
12 lines
314 B
Python
12 lines
314 B
Python
from utils.apps.manager import listener_service
|
|
from utils.mysql import MySQL
|
|
from .repositories import UserRepository
|
|
from .services import UserService
|
|
|
|
|
|
@listener_service()
|
|
def create_user_service(mysql: MySQL):
|
|
_repository = UserRepository(mysql)
|
|
_service = UserService(_repository)
|
|
return _service
|