feat: 新增软考高项时间轴数据骨架
This commit is contained in:
30
src/types/timeline.ts
Normal file
30
src/types/timeline.ts
Normal 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节”
|
||||
}
|
||||
Reference in New Issue
Block a user