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
+13 -13
View File
@@ -4,20 +4,20 @@ from datetime import datetime
from typing import Callable, List, Optional, Tuple, Union, Dict
from urllib.parse import urljoin
from app.helper.sites import SitesHelper # noqa
from app.infrastructure.sites import SitesHelper # noqa
from lxml import etree
from app.chain import ChainBase
from app.core.config import global_vars, settings
from app.core.event import Event, eventmanager
from app.platform.config import global_vars, settings
from app.platform.events import Event, eventmanager
from app.db.models.site import Site
from app.db.site_oper import SiteOper
from app.db.systemconfig_oper import SystemConfigOper
from app.helper.browser import PlaywrightHelper
from app.helper.cloudflare import under_challenge
from app.helper.cookie import CookieHelper
from app.helper.cookiecloud import CookieCloudHelper
from app.helper.interaction import (
from app.infrastructure.browser import PlaywrightHelper
from app.infrastructure.cloudflare import under_challenge
from app.security.cookie import CookieHelper
from app.integrations.cookiecloud import CookieCloudHelper
from app.messaging.interaction import (
SlashInteractionManager,
build_navigation_buttons,
format_markdown_table,
@@ -26,13 +26,13 @@ from app.helper.interaction import (
supports_markdown,
update_or_post_message,
)
from app.helper.rss import RssHelper
from app.log import logger
from app.infrastructure.rss import RssHelper
from app.platform.log import logger
from app.schemas import MessageChannel, Notification, SiteUserData
from app.schemas.types import EventType, NotificationType
from app.utils.http import RequestUtils
from app.utils.site import SiteUtils
from app.utils.string import StringUtils
from app.foundation.http import RequestUtils
from app.domain.site import SiteUtils
from app.domain.string import StringUtils
site_interaction_manager = SlashInteractionManager()