mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-08-18 04:34:00 +08:00
refactor: reorganize backend module boundaries
This commit is contained in:
@@ -4,13 +4,13 @@ import re
|
||||
from typing import Dict, Optional, Union, List, Tuple, Any
|
||||
|
||||
from app.domain.context import MediaInfo, Context
|
||||
from app.platform.events import eventmanager
|
||||
from app.messaging.agent import (
|
||||
from app.runtime.events import eventmanager
|
||||
from app.application.messaging.agent import (
|
||||
matches_channel_admin,
|
||||
register_channel_admin_resolver,
|
||||
resolve_config_principal_ids,
|
||||
)
|
||||
from app.platform.log import logger
|
||||
from app.runtime.log import logger
|
||||
from app.modules import _ModuleBase, _MessageBase
|
||||
from app.modules.telegram.telegram import Telegram
|
||||
from app.schemas import (
|
||||
@@ -22,7 +22,7 @@ from app.schemas import (
|
||||
MessageResponse,
|
||||
)
|
||||
from app.schemas.types import ModuleType, ChainEventType
|
||||
from app.foundation.structures import DictUtils
|
||||
from app.foundation.collections import DictUtils
|
||||
|
||||
|
||||
register_channel_admin_resolver(
|
||||
|
||||
@@ -34,14 +34,14 @@ try:
|
||||
except ImportError:
|
||||
from telegramify_markdown.type import ContentTypes, File, Photo, Text # noqa: E402
|
||||
|
||||
from app.platform.config import settings # noqa: E402
|
||||
from app.runtime.config import settings # noqa: E402
|
||||
from app.domain.context import MediaInfo, Context # noqa: E402
|
||||
from app.domain.metainfo import MetaInfo # noqa: E402
|
||||
from app.services.image import ImageHelper # noqa: E402
|
||||
from app.platform.thread import ThreadHelper # noqa: E402
|
||||
from app.platform.log import logger # noqa: E402
|
||||
from app.platform.execution import retry # noqa: E402
|
||||
from app.foundation.http import RequestUtils # noqa: E402
|
||||
from app.application.image import ImageHelper # noqa: E402
|
||||
from app.runtime.thread import ThreadHelper # noqa: E402
|
||||
from app.runtime.log import logger # noqa: E402
|
||||
from app.runtime.execution import retry # noqa: E402
|
||||
from app.adapters.network.http import RequestUtils # noqa: E402
|
||||
from app.domain.string import StringUtils # noqa: E402
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user