初始化 wiki 服务

This commit is contained in:
洛水居室 2022-07-30 21:00:40 +08:00
parent 9604eb21ef
commit c3c2d6b587
No known key found for this signature in database
GPG Key ID: C9DE87DA724B88FC

View File

@ -0,0 +1,11 @@
from app.wiki.cache import WikiCache
from app.wiki.service import WikiService
from utils.app.manager import listener_service
from utils.redisdb import RedisDB
@listener_service()
def create_wiki_service(redis: RedisDB):
_cache = WikiCache(redis)
_service = WikiService(_cache)
return _service