mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 15:38:19 +08:00
refactor backend module architecture
This commit is contained in:
@@ -3,14 +3,14 @@ import json
|
||||
from typing import Any, Dict, List, Optional, Tuple, Union
|
||||
from urllib.parse import quote, unquote
|
||||
|
||||
from app.core.context import MediaInfo, Context
|
||||
from app.core.event import eventmanager
|
||||
from app.helper.agent import (
|
||||
from app.domain.context import MediaInfo, Context
|
||||
from app.platform.events import eventmanager
|
||||
from app.messaging.agent import (
|
||||
matches_channel_admin,
|
||||
register_channel_admin_resolver,
|
||||
resolve_config_principal_ids,
|
||||
)
|
||||
from app.log import logger
|
||||
from app.platform.log import logger
|
||||
from app.modules import _ModuleBase, _MessageBase
|
||||
from app.schemas import (
|
||||
CommandRegisterEventData,
|
||||
@@ -20,8 +20,8 @@ from app.schemas import (
|
||||
Notification,
|
||||
)
|
||||
from app.schemas.types import ChainEventType, ModuleType
|
||||
from app.utils.http import RequestUtils
|
||||
from app.utils.structures import DictUtils
|
||||
from app.foundation.http import RequestUtils
|
||||
from app.foundation.structures import DictUtils
|
||||
|
||||
try:
|
||||
from app.modules.discord.discord import Discord
|
||||
|
||||
@@ -9,12 +9,12 @@ import discord
|
||||
from discord import app_commands
|
||||
import httpx
|
||||
|
||||
from app.core.config import settings
|
||||
from app.core.context import MediaInfo, Context
|
||||
from app.core.metainfo import MetaInfo
|
||||
from app.log import logger
|
||||
from app.platform.config import settings
|
||||
from app.domain.context import MediaInfo, Context
|
||||
from app.domain.metainfo import MetaInfo
|
||||
from app.platform.log import logger
|
||||
from app.schemas.types import NotificationType
|
||||
from app.utils.string import StringUtils
|
||||
from app.domain.string import StringUtils
|
||||
|
||||
# Discord embed 字段解析白名单
|
||||
# 只有这些消息类型会使用复杂的字段解析逻辑
|
||||
|
||||
Reference in New Issue
Block a user