big update

This commit is contained in:
stardrophere
2026-03-11 20:52:58 +08:00
parent 8ed819a580
commit 966bcfbba4
44 changed files with 7124 additions and 650 deletions
+26
View File
@@ -0,0 +1,26 @@
/** 推送时间表 */
export interface DeliverySchedule {
id: number
user_id: number
delivery_time: string
is_active: boolean
created_at: string
}
/** 推送渠道端点 */
export interface PushEndpoint {
id: number
user_id: number
channel_type: string
channel_account: string
is_active: boolean
priority_level: number
created_at: string
updated_at: string
}
/** 用户完整推送配置 */
export interface DeliveryConfig {
schedules: DeliverySchedule[]
endpoints: PushEndpoint[]
}
+48
View File
@@ -0,0 +1,48 @@
/** 各平台热搜子条目 */
export interface PlatformTrend {
source_id: number
platform_name: string
headline: string
url: string | null
current_ranking: number | null
ranking_history: number[]
}
/** AI 统一大事件 */
export interface UnifiedEvent {
event_id: number
unified_title: string
summary: string | null
hot_score: number
created_at: string
platforms: PlatformTrend[]
tags: string[]
}
/** 分页包装 */
export interface PaginatedEvents {
total: number
has_more: boolean
data: UnifiedEvent[]
}
/** 标题修改记录 */
export interface HeadlineRevision {
id: number
event_id: number
previous_headline: string
revised_headline: string
source_name: string | null
platform_icon: string | null
created_at: string
}
/** 系统运行状态 */
export interface SystemStats {
active_sources: number
total_sources: number
items_today: number
success_tasks_today: number
error_tasks_today: number
last_sync_at: string | null
}
+34
View File
@@ -0,0 +1,34 @@
/** 用户兴趣关键词 */
export interface UserTopicPreference {
id: number
user_id: number
interested_keyword: string
created_at: string
}
/** 语义命中详情 */
export interface SemanticHit {
preference_keyword: string
topic_keyword: string
similarity: number
}
/** 推荐事件 */
export interface MatchedEvent {
event_id: number
unified_title: string
summary: string | null
hot_score: number
created_at: string
tags: string[]
match_score: number
exact_hits: string[]
semantic_hits: SemanticHit[]
}
/** 推荐列表响应 */
export interface RecommendationResponse {
user_id: number
total: number
data: MatchedEvent[]
}