feat: 重构消息处理模块,引入统一的消息接口和类型安全的消息解析

This commit is contained in:
lixiangwuxian
2025-03-08 16:10:06 +08:00
parent e0637ab81f
commit 13ea5d7f98
16 changed files with 412 additions and 165 deletions

6
message/cq_message.go Normal file
View File

@@ -0,0 +1,6 @@
package message
type CQMessage interface {
ToCQString() string
ParseMessage(data string) error
}