feat: 平台配置唯一ID — PlatformConfig.ID + adapter全链路传播
- PlatformConfig 新增 ID 字段 (8字节hex,创建时自动生成) - QQ adapter 新增 configID + ConfigID() 访问器 - ChannelInfo 新增 AdapterID + AdapterName - createSingleAdapter 接受 configID 参数 - 同一个平台类型的多个配置实例通过 ID 唯一区分 Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -32,6 +32,8 @@ type ChannelInfo struct {
|
||||
ChannelType string `json:"channel_type"` // "group", "private"
|
||||
ChannelID string `json:"channel_id"`
|
||||
ChannelName string `json:"channel_name,omitempty"`
|
||||
AdapterID string `json:"adapter_id,omitempty"` // config ID of the adapter instance
|
||||
AdapterName string `json:"adapter_name,omitempty"` // config name, e.g. "qq-main"
|
||||
}
|
||||
|
||||
// ChannelLister is an optional interface for adapters that can enumerate
|
||||
|
||||
Reference in New Issue
Block a user