feat: 优化总览

This commit is contained in:
digua
2025-11-30 02:13:33 +08:00
parent d10ecdf2ba
commit 03ec49bc7e
8 changed files with 158 additions and 50 deletions

View File

@@ -344,6 +344,21 @@ const mainIpcMain = (win: BrowserWindow) => {
}
)
/**
* 获取月份活跃度分布
*/
ipcMain.handle(
'chat:getMonthlyActivity',
async (_, sessionId: string, filter?: { startTs?: number; endTs?: number }) => {
try {
return await worker.getMonthlyActivity(sessionId, filter)
} catch (error) {
console.error('获取月份活跃度失败:', error)
return []
}
}
)
/**
* 获取消息类型分布
*/