新增消息日志、发件箱、会话等领域模型,新增多类型业务异常定义,添加工厂协议端口与数据库工作单元实现,同时补充飞书、钩子、Web渠道的请求验证器,以及数据转换类和异常翻译工具
12 lines
427 B
Python
12 lines
427 B
Python
from __future__ import annotations
|
|
|
|
from yuxi.channel.domain.exception.channel_error import ChannelError
|
|
|
|
|
|
class DuplicateBindingException(ChannelError):
|
|
def __init__(self, channel_type: str, account_id: str, group_id: str):
|
|
self.channel_type = channel_type
|
|
self.account_id = account_id
|
|
self.group_id = group_id
|
|
super().__init__(f"duplicate binding: {channel_type}/{account_id}/{group_id}")
|