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
+7 -7
View File
@@ -11,11 +11,11 @@ from typing import Optional, List, Tuple
from PIL import Image
from app.core.cache import FileCache
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.cache import FileCache
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.modules.qqbot.api import (
get_access_token,
get_gateway_url,
@@ -23,8 +23,8 @@ from app.modules.qqbot.api import (
send_proactive_group_message,
)
from app.modules.qqbot.gateway import run_gateway
from app.utils.http import RequestUtils
from app.utils.string import StringUtils
from app.foundation.http import RequestUtils
from app.domain.string import StringUtils
# QQ Markdown 图片展示尺寸限制,避免竖版海报被客户端拉伸变形
_DEFAULT_IMAGE_SIZE: Tuple[int, int] = (208, 320)