feat: 新增软考高项时间轴数据骨架

This commit is contained in:
ittoview
2026-03-22 14:14:47 +00:00
parent 9b02e707fb
commit acaffa75e9
4 changed files with 961 additions and 0 deletions

30
src/types/timeline.ts Normal file
View File

@@ -0,0 +1,30 @@
/**
* 时间轴数据类型定义
* 用于软考高项时间类知识点的结构化存储与展示
*/
// 时间精度
export type TimelineTimePrecision = 'year' | 'month' | 'day';
// 来源锚点类型
export type SourceAnchorType =
| 'meeting' // 会议
| 'document' // 文件
| 'organization' // 组织
| 'person' // 人物
| 'policy' // 政策
| 'report' // 报告
| 'other'; // 其他
// 时间轴节点
export interface TimelineItem {
id: string; // 唯一标识,如 TL001
timeText: string; // 原文中的显式时间如“2035年”
sortKey: string; // 排序键如“20350000”
timePrecision: TimelineTimePrecision; // 时间精度:年/月/日
theme: string; // 所属主题/章节
excerpt: string; // 原文摘录
sourceAnchor?: string; // 来源锚点,如“党的十九届五中全会”
sourceAnchorType?: SourceAnchorType; // 来源锚点类型
sourcePosition?: string; // 教材定位信息如“第3章 第2节”
}