mirror of
https://github.com/PaiGramTeam/PamGram.git
synced 2024-11-29 09:07:13 +00:00
602ce67e41
`apps` → `core`
15 lines
463 B
Python
15 lines
463 B
Python
from utils.mysql import MySQL
|
|
from utils.redisdb import RedisDB
|
|
from utils.service.manager import listener_service
|
|
from .cache import BotAdminCache
|
|
from .repositories import BotAdminRepository
|
|
from .services import BotAdminService
|
|
|
|
|
|
@listener_service()
|
|
def create_bot_admin_service(mysql: MySQL, redis: RedisDB):
|
|
_cache = BotAdminCache(redis)
|
|
_repository = BotAdminRepository(mysql)
|
|
_service = BotAdminService(_repository, _cache)
|
|
return _service
|