mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-02 22:17:08 +08:00
refactor: 收口 V3 分层架构与插件兼容边界
This commit is contained in:
@@ -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:
|
||||
"""飞书通知客户端,负责长连接收消息与主动发送通知。"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user