feat: 新增静态文章模块并支持 NFC 链接分发
- 新增 Article 数据模型 + 迁移(title/subtitle/body/coverImage/caption) - 后端:公共 /api/articles 查询接口 + 管理端 CRUD/上传/二维码 - 前端:移动端 /article/:id 阅读页(Playfair + 纸张肌理 + 首行缩进) - Admin:新增文章管理三页(列表/表单/二维码)与侧栏入口 - 导入 6 篇点位解说词:朝天宫/七家湾/运渎/打钉巷/绒庄街/熙南里 - Admin 二维码页增加「复制链接(写入 NFC)」按钮 - 落地页步骤文案从扫码改为 NFC 触碰 - Dockerfile + entrypoint 增加 articles 图片回灌 - 修复 deploy-stamp skill 构建轮询卡住(pgrep 模式错误) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -28,3 +28,21 @@ export type RedemptionRecord = {
|
||||
stampCount: number;
|
||||
redeemedAt: string;
|
||||
};
|
||||
|
||||
export type ArticleSummary = {
|
||||
id: string;
|
||||
title: string;
|
||||
subtitle: string | null;
|
||||
coverImage: string;
|
||||
sortOrder: number;
|
||||
};
|
||||
|
||||
export type ArticleDetail = {
|
||||
id: string;
|
||||
title: string;
|
||||
subtitle: string | null;
|
||||
body: string;
|
||||
coverImage: string;
|
||||
caption: string | null;
|
||||
sortOrder: number;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user