refactor backend module architecture

This commit is contained in:
jxxghp
2026-08-14 15:45:38 +08:00
parent 557cc0e2e3
commit 7b3444c366
716 changed files with 10378 additions and 7709 deletions
+8 -7
View File
@@ -1,14 +1,15 @@
from typing import Any, Optional, Tuple, Union
from app.core.cache import cached
from app.core.config import settings
from app.core.context import (
from app.platform.cache import cached
from app.platform.config import settings
from app.domain.context import (
MusicAlbumInfo,
MusicArtistInfo,
MusicInfo,
)
from app.core.meta import MetaBase, MetaMusic
from app.log import logger
from app.domain.meta.metabase import MetaBase
from app.domain.meta.metamusic import MetaMusic
from app.platform.log import logger
from app.modules import _ModuleBase
from app.schemas.types import (
MUSIC_ENTITY_ALBUM,
@@ -19,8 +20,8 @@ from app.schemas.types import (
MediaType,
ModuleType,
)
from app.utils.http import AsyncRequestUtils, RequestUtils
from app.utils.media import is_media_source_selected
from app.foundation.http import AsyncRequestUtils, RequestUtils
from app.domain.media import is_media_source_selected
class TheAudioDbModule(_ModuleBase):