mirror of
https://github.com/hicccc77/WeFlow.git
synced 2026-03-28 23:15:50 +00:00
支持聊天记录转发解析与嵌套聊天记录解析;优化聊天记录转发窗口样式
This commit is contained in:
4
src/types/electron.d.ts
vendored
4
src/types/electron.d.ts
vendored
@@ -1,4 +1,4 @@
|
||||
import type { ChatSession, Message, Contact, ContactInfo } from './models'
|
||||
import type { ChatSession, Message, Contact, ContactInfo, ChatRecordItem } from './models'
|
||||
|
||||
export interface SessionChatWindowOpenOptions {
|
||||
source?: 'chat' | 'export'
|
||||
@@ -24,6 +24,8 @@ export interface ElectronAPI {
|
||||
resizeToFitVideo: (videoWidth: number, videoHeight: number) => Promise<void>
|
||||
openImageViewerWindow: (imagePath: string, liveVideoPath?: string) => Promise<void>
|
||||
openChatHistoryWindow: (sessionId: string, messageId: number) => Promise<boolean>
|
||||
openChatHistoryPayloadWindow: (payload: { sessionId: string; title?: string; recordList: ChatRecordItem[] }) => Promise<boolean>
|
||||
getChatHistoryPayload: (payloadId: string) => Promise<{ success: boolean; payload?: { sessionId: string; title?: string; recordList: ChatRecordItem[] }; error?: string }>
|
||||
openSessionChatWindow: (sessionId: string, options?: SessionChatWindowOpenOptions) => Promise<boolean>
|
||||
}
|
||||
config: {
|
||||
|
||||
@@ -129,11 +129,19 @@ export interface ChatRecordItem {
|
||||
dataurl?: string // 数据URL
|
||||
datathumburl?: string // 缩略图URL
|
||||
datacdnurl?: string // CDN URL
|
||||
cdndatakey?: string // CDN 数据 key
|
||||
cdnthumbkey?: string // CDN 缩略图 key
|
||||
aeskey?: string // AES密钥
|
||||
md5?: string // MD5
|
||||
fullmd5?: string // 原图 MD5
|
||||
thumbfullmd5?: string // 缩略图 MD5
|
||||
srcMsgLocalid?: number // 源消息 LocalId
|
||||
imgheight?: number // 图片高度
|
||||
imgwidth?: number // 图片宽度
|
||||
duration?: number // 时长(毫秒)
|
||||
chatRecordTitle?: string // 嵌套聊天记录标题
|
||||
chatRecordDesc?: string // 嵌套聊天记录描述
|
||||
chatRecordList?: ChatRecordItem[] // 嵌套聊天记录列表
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user