refactor: reorganize backend module boundaries

This commit is contained in:
jxxghp
2026-08-14 19:53:33 +08:00
parent fe0b444ceb
commit 369d7d6448
584 changed files with 2423 additions and 2275 deletions
+9 -9
View File
@@ -13,8 +13,8 @@ from app import schemas
from app.chain import ChainBase
from app.chain.media import MediaChain
from app.chain.storage import StorageChain
from app.platform.cache import FileCache
from app.platform.config import settings, global_vars
from app.runtime.cache import FileCache
from app.runtime.config import settings, global_vars
from app.domain.context import (
Context,
MediaInfo,
@@ -22,25 +22,25 @@ from app.domain.context import (
SubtitleInfo,
TorrentInfo,
)
from app.platform.events import eventmanager, Event
from app.runtime.events import eventmanager, Event
from app.domain.meta.metabase import MetaBase
from app.domain.meta.metamusic import MetaMusic
from app.domain.metainfo import MetaInfo
from app.db.downloadfailure_oper import DownloadFailureOper
from app.db.downloadhistory_oper import DownloadHistoryOper
from app.db.mediaserver_oper import MediaServerOper
from app.services.directory import DirectoryHelper, validate_download_save_path
from app.platform.thread import ThreadHelper
from app.services.torrent import TorrentHelper
from app.platform.log import logger
from app.application.directory import DirectoryHelper, validate_download_save_path
from app.runtime.thread import ThreadHelper
from app.application.torrent import TorrentHelper
from app.runtime.log import logger
from app.schemas import ExistMediaInfo, FileURI, NotExistMediaInfo, DownloaderTorrent, Notification, ResourceSelectionEventData, \
ResourceDownloadEventData
from app.schemas.types import MUSIC_ENTITY_ALBUM, MediaSource, MediaType, TorrentStatus, EventType, MessageChannel, NotificationType, ContentType, \
ChainEventType
from app.foundation.http import RequestUtils
from app.adapters.network.http import RequestUtils
from app.domain.media import build_media_key, resolve_media_identity
from app.domain.string import StringUtils
from app.infrastructure.system import SystemUtils
from app.adapters.system.host import SystemUtils
DOWNLOAD_FAILURE_RESOURCE_TTL_SECONDS = 24 * 60 * 60