feat(module): add ServiceBaseHelper for service and instance

This commit is contained in:
InfinityPacer
2024-09-29 23:46:41 +08:00
parent 7c643432ee
commit 0593275a62
7 changed files with 166 additions and 9 deletions
+13 -2
View File
@@ -1,5 +1,16 @@
class DownloaderHelper:
from app.helper.servicebase import ServiceBaseHelper
from app.schemas import DownloaderConf
from app.schemas.types import SystemConfigKey
class DownloaderHelper(ServiceBaseHelper[DownloaderConf]):
"""
下载器帮助类
"""
pass
def __init__(self):
super().__init__(
config_key=SystemConfigKey.Downloaders,
conf_type=DownloaderConf,
modules=["QbittorrentModule", "TransmissionModule"]
)