import dayjs from 'dayjs'; import { api } from './api'; export type Article = { id: string; title: string; coverImage: string; htmlContent: string; publishedAt: string; // ISO string readCount: number; }; const demoArticles: Article[] = [ { id: 'intro-pilates-posture', title: '新手入门:普拉提核心与体态的关系', coverImage: 'https://plates-1251306435.cos.ap-guangzhou.myqcloud.com/images/imagedemo.jpeg', publishedAt: dayjs().subtract(2, 'day').toISOString(), readCount: 1268, htmlContent: `

为什么核心很重要?

核心是维持良好体态与动作稳定的关键。普拉提通过强调呼吸与深层肌群激活,帮助你在日常站立、坐姿与训练中保持更好的身体对齐。

入门建议

  1. 从呼吸开始:尝试胸廓外扩而非耸肩。
  2. 慢而可控:注意动作过程中的连贯与专注。
  3. 记录变化:每周拍照或在应用中记录体态变化。

更多实操可在本应用的「AI体态评估」中获取个性化建议。

pilates-illustration `, }, ]; export function listRecommendedArticles(): Article[] { // 实际项目中可替换为 API 请求 return demoArticles; } export async function getArticleById(id: string): Promise
{ return api.get
(`/articles/${id}`); }