feat: 一些适配

This commit is contained in:
Forrest
2026-01-29 21:25:36 +08:00
parent 26fbfd2c98
commit f3994a1a72
14 changed files with 1580 additions and 242 deletions

View File

@@ -53,8 +53,44 @@ export interface Message {
// 引用消息
quotedContent?: string
quotedSender?: string
// Type 49 细分字段
linkTitle?: string // 链接/文件标题
linkUrl?: string // 链接 URL
linkThumb?: string // 链接缩略图
fileName?: string // 文件名
fileSize?: number // 文件大小
fileExt?: string // 文件扩展名
xmlType?: string // XML 中的 type 字段
// 名片消息
cardUsername?: string // 名片的微信ID
cardNickname?: string // 名片的昵称
// 聊天记录
chatRecordTitle?: string // 聊天记录标题
chatRecordList?: ChatRecordItem[] // 聊天记录列表
}
// 聊天记录项
export interface ChatRecordItem {
datatype: number // 消息类型
sourcename: string // 发送者
sourcetime: string // 时间
sourceheadurl?: string // 发送者头像
datadesc?: string // 内容描述
datatitle?: string // 标题
fileext?: string // 文件扩展名
datasize?: number // 文件大小
messageuuid?: string // 消息UUID
dataurl?: string // 数据URL
datathumburl?: string // 缩略图URL
datacdnurl?: string // CDN URL
aeskey?: string // AES密钥
md5?: string // MD5
imgheight?: number // 图片高度
imgwidth?: number // 图片宽度
duration?: number // 时长(毫秒)
}
// 分析数据
export interface AnalyticsData {
totalMessages: number