搜索功能加入

This commit is contained in:
stardrophere
2026-03-13 18:25:38 +08:00
parent 9440b7f590
commit 6aee65af6c
18 changed files with 1545 additions and 103 deletions
+15 -1
View File
@@ -20,7 +20,7 @@ export interface UnifiedEvent {
tags: string[]
}
/** 分页包装 */
/** 分页响应 */
export interface PaginatedEvents {
total: number
has_more: boolean
@@ -48,3 +48,17 @@ export interface SystemStats {
error_tasks_today: number
last_sync_at: string | null
}
/** 搜索时间点数据 */
export interface TimelineDataPoint {
time_label: string
count: number
event_ids: number[]
}
/** 时间线搜索结果 */
export interface SearchTimelineResponse {
keyword: string
timeline: TimelineDataPoint[]
events: UnifiedEvent[]
}