mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-05-03 11:41:17 +08:00
feat: 支持统计龙王和潜水排名
This commit is contained in:
@@ -12,6 +12,8 @@ import type {
|
||||
RepeatAnalysis,
|
||||
CatchphraseAnalysis,
|
||||
NightOwlAnalysis,
|
||||
DragonKingAnalysis,
|
||||
DivingAnalysis,
|
||||
} from '../../src/types/chat'
|
||||
|
||||
// Custom APIs for renderer
|
||||
@@ -190,6 +192,26 @@ const chatApi = {
|
||||
): Promise<NightOwlAnalysis> => {
|
||||
return ipcRenderer.invoke('chat:getNightOwlAnalysis', sessionId, filter)
|
||||
},
|
||||
|
||||
/**
|
||||
* 获取龙王分析数据
|
||||
*/
|
||||
getDragonKingAnalysis: (
|
||||
sessionId: string,
|
||||
filter?: { startTs?: number; endTs?: number }
|
||||
): Promise<DragonKingAnalysis> => {
|
||||
return ipcRenderer.invoke('chat:getDragonKingAnalysis', sessionId, filter)
|
||||
},
|
||||
|
||||
/**
|
||||
* 获取潜水分析数据
|
||||
*/
|
||||
getDivingAnalysis: (
|
||||
sessionId: string,
|
||||
filter?: { startTs?: number; endTs?: number }
|
||||
): Promise<DivingAnalysis> => {
|
||||
return ipcRenderer.invoke('chat:getDivingAnalysis', sessionId, filter)
|
||||
},
|
||||
}
|
||||
|
||||
// Use `contextBridge` APIs to expose Electron APIs to
|
||||
|
||||
Reference in New Issue
Block a user