mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 07:27:15 +08:00
refactor backend module architecture
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
"""插件常用的无状态通用工具。"""
|
||||
|
||||
from app.domain.string import StringUtils
|
||||
from app.foundation.crypto import CryptoJsUtils
|
||||
from app.foundation.dom import DomUtils
|
||||
from app.foundation.jieba import cut
|
||||
from app.foundation.object import ObjectUtils
|
||||
from app.foundation.singleton import Singleton
|
||||
from app.infrastructure.system import SystemUtils
|
||||
from app.platform.execution import log_execution_time, retry
|
||||
from app.platform.localization import LocaleHelper
|
||||
from app.platform.scheduling import TimerUtils
|
||||
from app.security.otp import OtpUtils
|
||||
|
||||
|
||||
decrypt = CryptoJsUtils.decrypt
|
||||
encrypt = CryptoJsUtils.encrypt
|
||||
|
||||
|
||||
__all__ = [
|
||||
"CryptoJsUtils",
|
||||
"DomUtils",
|
||||
"ObjectUtils",
|
||||
"OtpUtils",
|
||||
"LocaleHelper",
|
||||
"Singleton",
|
||||
"StringUtils",
|
||||
"SystemUtils",
|
||||
"TimerUtils",
|
||||
"cut",
|
||||
"decrypt",
|
||||
"encrypt",
|
||||
"log_execution_time",
|
||||
"retry",
|
||||
]
|
||||
Reference in New Issue
Block a user