返回 AiToEarn
hotTopic.ts
根目录 / project / aitoearn-electron / src / api / types / hotTopic.ts
1 import { Platform } from '../platform';
2
3 interface HotValueHistory {
4 timestamp: Date; // 记录时间
5 value: number; // 热度值
6 }
7
8 export interface HotTopic {
9 _id: string;
10 platformId: Platform; // 关联平台ID
11 title: string; // 话题标题
12 hotValue: number; // 当前热度值
13 url: string; // 话题链接
14 rank: number; // 当前排名
15 rankChange: number; // 排名变化值(正数表示上升,负数表示下降)
16 isRising: boolean; // 是否上升趋势
17 hotValueHistory: HotValueHistory[]; // 热度值历史记录
18 fetchTime: Date; // 数据抓取时间
19 createTime: Date;
20 updateTime: Date;
21 }
22
22 lines TYPESCRIPT