refactor: 收口 V3 分层架构与插件兼容边界

This commit is contained in:
jxxghp
2026-08-18 13:22:02 +08:00
parent cca99bd421
commit 8472bcff43
274 changed files with 10730 additions and 6130 deletions
+10 -1
View File
@@ -52,7 +52,7 @@ from lark_oapi.event.callback.model.p2_card_action_trigger import (
from app.runtime.config import settings
from app.domain.context import Context, MediaInfo
from app.db.oper.user import UserOper
from app.application.security.user import get_configured_user_channel_lookup
from app.application.messaging.agent import matches_channel_admin
from app.runtime.log import logger
from app.schemas.message import IncomingMessage
@@ -61,6 +61,15 @@ from app.schemas.types import NotificationChannel, MessageType
from app.adapters.network.http import RequestUtils
class UserOper:
"""兼容飞书模块存量测试的渠道用户查询门面。"""
@staticmethod
def get_name(**bindings) -> Optional[str]:
"""把渠道标识查询转发到启动组合根登记的用户端口。"""
return get_configured_user_channel_lookup()(**bindings)
class Feishu:
"""飞书通知客户端,负责长连接收消息与主动发送通知。"""