| 455 | |
| 456 | // 收藏项基础接口 |
| 457 | export interface FavoriteItem { |
| 458 | id: string // 收藏项唯一 ID |
| 459 | type: FavoriteItemType // 收藏项类型 |
| 460 | title: string // 收藏项标题 |
| 461 | description?: string // 可选的描述 |
| 462 | tags?: string[] // 标签 |
| 463 | folderId?: string // 所属文件夹 ID |
| 464 | source?: FavoriteSource // 来源信息 |
| 465 | |
| 466 | // 类型特定的数据 |
| 467 | data: PageFavoriteData | MessageFavoriteData | TextFragmentFavoriteData |
| 468 | |
| 469 | createdAt: number // 收藏时间 |
| 470 | updatedAt: number // 最后更新时间 |
| 471 | order?: number // 排序顺序 |
| 472 | color?: string // 可选的标记颜色 |
| 473 | starred?: boolean // 是否标记为星标 |
| 474 | |
| 475 | // 笔记 |
| 476 | notes?: string // 用户笔记 |
| 477 | } |
| 478 | |
| 479 | // 收藏文件夹 |
| 480 | export interface FavoriteFolder { |
nothing calls this directly
no outgoing calls
no test coverage detected