mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-05-21 22:00:39 +08:00
feat: 互动频率分析
This commit is contained in:
@@ -20,6 +20,8 @@ import type {
|
||||
CheckInAnalysis,
|
||||
MemeBattleAnalysis,
|
||||
MemberWithStats,
|
||||
ClusterGraphData,
|
||||
ClusterGraphOptions,
|
||||
} from '../../../src/types/analysis'
|
||||
import type { FileParseInfo, ConflictCheckResult, MergeParams, MergeResult } from '../../../src/types/format'
|
||||
|
||||
@@ -277,6 +279,17 @@ export const chatApi = {
|
||||
return ipcRenderer.invoke('chat:getMentionGraph', sessionId, filter)
|
||||
},
|
||||
|
||||
/**
|
||||
* 获取小团体关系图数据(基于时间相邻共现)
|
||||
*/
|
||||
getClusterGraph: (
|
||||
sessionId: string,
|
||||
filter?: { startTs?: number; endTs?: number },
|
||||
options?: ClusterGraphOptions
|
||||
): Promise<ClusterGraphData> => {
|
||||
return ipcRenderer.invoke('chat:getClusterGraph', sessionId, filter, options)
|
||||
},
|
||||
|
||||
/**
|
||||
* 获取含笑量分析数据
|
||||
*/
|
||||
|
||||
Vendored
+3
@@ -17,6 +17,8 @@ import type {
|
||||
MemeBattleAnalysis,
|
||||
CheckInAnalysis,
|
||||
MemberWithStats,
|
||||
ClusterGraphData,
|
||||
ClusterGraphOptions,
|
||||
} from '../../src/types/analysis'
|
||||
import type { FileParseInfo, ConflictCheckResult, MergeParams, MergeResult } from '../../src/types/format'
|
||||
import type { TableSchema, SQLResult } from '../../src/components/analysis/SQLLab/types'
|
||||
@@ -131,6 +133,7 @@ interface ChatApi {
|
||||
getDivingAnalysis: (sessionId: string, filter?: TimeFilter) => Promise<DivingAnalysis>
|
||||
getMentionAnalysis: (sessionId: string, filter?: TimeFilter) => Promise<MentionAnalysis>
|
||||
getMentionGraph: (sessionId: string, filter?: TimeFilter) => Promise<MentionGraphData>
|
||||
getClusterGraph: (sessionId: string, filter?: TimeFilter, options?: ClusterGraphOptions) => Promise<ClusterGraphData>
|
||||
getLaughAnalysis: (sessionId: string, filter?: TimeFilter, keywords?: string[]) => Promise<LaughAnalysis>
|
||||
getMemeBattleAnalysis: (sessionId: string, filter?: TimeFilter) => Promise<MemeBattleAnalysis>
|
||||
getCheckInAnalysis: (sessionId: string, filter?: TimeFilter) => Promise<CheckInAnalysis>
|
||||
|
||||
Reference in New Issue
Block a user