mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-04-25 21:32:41 +08:00
feat: 优化总览
This commit is contained in:
@@ -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 []
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
/**
|
||||
* 获取消息类型分布
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user