mirror of
https://github.com/PaiGramTeam/MibooGram.git
synced 2024-11-24 09:15:24 +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
|