feat: 口头禅分析

This commit is contained in:
digua
2025-11-27 22:17:06 +08:00
parent 00eea87a11
commit 8e40b73836
6 changed files with 267 additions and 17 deletions

View File

@@ -375,6 +375,21 @@ const mainIpcMain = (win: BrowserWindow) => {
}
}
)
/**
* 获取口头禅分析数据
*/
ipcMain.handle(
'chat:getCatchphraseAnalysis',
async (_, sessionId: string, filter?: { startTs?: number; endTs?: number }) => {
try {
return database.getCatchphraseAnalysis(sessionId, filter)
} catch (error) {
console.error('获取口头禅分析失败:', error)
return { members: [] }
}
}
)
}
export default mainIpcMain