From 92deb89e2a0f56df44b3d709e0190296764bc2a4 Mon Sep 17 00:00:00 2001 From: gaoziman <2942894660@qq.com> Date: Wed, 24 Dec 2025 00:07:06 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E7=B1=BB=E5=9E=8B):=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=BF=AB=E6=8D=B7=E7=9F=AD=E8=AF=AD=20QuickPhrase=20=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 定义快捷短语数据结构包含id、title、content、category等字段 - 支持自定义图标和排序 - 包含创建时间和更新时间戳 --- src/types/index.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/types/index.ts b/src/types/index.ts index eb2cdcd..1d99432 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -125,3 +125,15 @@ export interface QuickAction { icon: 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; // 更新时间戳 +}