MCPcopy Create free account
hub / github.com/experdot/pointer / FavoriteItem

Interface FavoriteItem

src/renderer/src/types/type.ts:457–477  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

455
456// 收藏项基础接口
457export 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// 收藏文件夹
480export interface FavoriteFolder {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected