fix: 按 K-00 约定修复 Go SDK 断线重交与退避

This commit is contained in:
Nixevol
2026-09-30 16:24:13 +08:00
parent 3749b9bdf1
commit f6f8ccf269
20 changed files with 1544 additions and 324 deletions
+8 -8
View File
@@ -39,7 +39,7 @@ type Options struct {
// DedupCapacity from+id 去重容量,默认 10000。
DedupCapacity int
// HTTPClient 注册用;nil 用默认。
// 测试可注入 transport。
// 测试通过同包 Options.transport 注入;正式 API 不导出假传输。
transport transport
}
@@ -91,9 +91,9 @@ type SendOptions struct {
// SendResult 发送结果。
type SendResult struct {
ID string
SendAtMs int64
State string
ID string `json:"id"`
SendAtMs int64 `json:"send_at_ms"`
State string `json:"state"`
}
// Message 下行消息(交给应用)。
@@ -165,10 +165,10 @@ type GroupEvent struct {
// SelfInfo 自己的资料。
type SelfInfo struct {
ID string `json:"id"`
Name string `json:"name"`
DefaultDelayMs int64 `json:"default_delay_ms"`
TalkPasswordSet bool `json:"talk_password_set"`
ID string `json:"id"`
Name string `json:"name"`
DefaultDelayMs int64 `json:"default_delay_ms"`
TalkPasswordSet bool `json:"talk_password_set"`
}
// GroupInfo 群摘要。