mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-23 00:01:45 +00:00
602ce67e41
`apps` → `core`
12 lines
317 B
Python
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
|