功能:完善聊天媒体展示与交易事件兼容

- 支持保存并展示会话关联商品主图
- 支持识别、持久化和播放 AMR 语音消息及其时长
- 补齐聊天接口 OpenAPI 契约、跨方言迁移和前端构建资源
- 兼容嵌套交易事件字段并避免改价卡片重复触发拍下事件
This commit is contained in:
Christ committed 2026-08-20 20:59:37 +08:00
1 parent 50eca2fca6
commit 58f91ac77d
58 files changed
+1040 -209

No files matched your search

+4
View File
@@ -46,6 +46,8 @@ type Message struct {
MessageType string
// Content 是文本或媒体地址,不包含平台凭证。
Content string
// MediaDuration 是语音消息的秒级时长;非语音或平台未提供时为零。
MediaDuration int64
// Status 是消息投递状态。
Status string
// ReadStatus 是平台确认的读取状态;值为 2 表示对方已读,其他值表示尚未确认。
@@ -72,6 +74,8 @@ type Session struct {
ItemID string
// ItemTitle 是会话关联商品标题。
ItemTitle string
// ItemImageURL 是会话关联商品主图的公开地址。
ItemImageURL string
// LastMessage 是最近消息摘要。
LastMessage string
// LastMessageAt 是最近消息时间的 Unix 秒时间戳。