feat: 新增账号编码和HTTP连接功能

This commit is contained in:
2026-04-11 18:22:52 +08:00
parent 2f5c4f7e54
commit f8927afa9c
94 changed files with 1213 additions and 10230 deletions

12
consts/public/msg_key.go Normal file
View File

@@ -0,0 +1,12 @@
package public
const GmqMsgPluginsName = "gmq_msg"
const AccountDialogKeyUserId = "account:dialog:%s"
const (
AccountFollowupTopic = "account:followup:stream" // 请求 Stream 键名与发消息的key一致
AccountFollowupConsumer = "account-followup-consumer" // 消费者名称(唯一标识)
AccountFollowupCount = 1 // 批处理大小每次读取1条
AccountFollowupAck = false // ACK是否自动确认true自动确认false不确认
)

View File

@@ -2,6 +2,7 @@ package public
// sql 数据库表名
const (
TableNameAccount = "account"
TableNameScriptedSpeech = "scripted_speech"
TableNameAccount = "account"
TableNameAccountUserDialog = "account_user_dialog"
TableNameScriptedSpeech = "scripted_speech"
)