feat(类型): 添加快捷短语 QuickPhrase 类型定义
- 定义快捷短语数据结构包含id、title、content、category等字段 - 支持自定义图标和排序 - 包含创建时间和更新时间戳
This commit is contained in:
parent
3265b66149
commit
92deb89e2a
@ -125,3 +125,15 @@ export interface QuickAction {
|
|||||||
icon: string;
|
icon: string;
|
||||||
prompt?: string;
|
prompt?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 快捷短语类型
|
||||||
|
export interface QuickPhrase {
|
||||||
|
id: string; // 唯一标识(UUID)
|
||||||
|
title: string; // 短语标题(必填,用于列表显示)
|
||||||
|
content: string; // 短语内容(必填,插入到输入框的文本)
|
||||||
|
category?: string; // 分类(可选,用于分组)
|
||||||
|
icon?: string; // 图标名称(可选,使用 lucide-react 图标)
|
||||||
|
sortOrder: number; // 排序顺序
|
||||||
|
createdAt: number; // 创建时间戳
|
||||||
|
updatedAt: number; // 更新时间戳
|
||||||
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user