PaiGram/apps/wiki/__init__.py
洛水居室 d1876c4c77
♻ 重命名模块路径
`utils.apps` → `utils.service`
2022-08-06 17:27:34 +08:00

12 lines
296 B
Python

from utils.redisdb import RedisDB
from utils.service.manager import listener_service
from .cache import WikiCache
from .services import WikiService
@listener_service()
def create_wiki_service(redis: RedisDB):
_cache = WikiCache(redis)
_service = WikiService(_cache)
return _service