# Config · 首页整体配置 存储在 `home_config.data` JSON 列。**单行单列,固定 `id=1`**。 ## 接口表 | Method | Path | 鉴权 | 说明 | |---|---|---|---| | GET | `/api/v1/config/home` | - | 读取首页配置 | | PUT | `/api/v1/config/home` | ✅ | 整体更新 | | PUT | `/api/v1/config/home/hero` | ✅ | 更新 Hero 区 | | PUT | `/api/v1/config/home/features` | ✅ | 整体替换功能卡 | | PUT | `/api/v1/config/home/expert-team` | ✅ | 整体替换专家团队 | | PUT | `/api/v1/config/home/info-banner` | ✅ | 更新信息条 | | PUT | `/api/v1/config/home/hero-experts` | ✅ | 整体替换 Hero 专家 | ## GET /api/v1/config/home **响应** `data` 形态: ```json { "hero": { "title": "...", "subtitle": "...", "bgImage": "...", "primaryCta": { "text": "...", "link": "/pages/appointment/index" } }, "features": [ { "icon": "🩺", "title": "..." , "link": "..." } ], "expertTeam": [ { "id": "he-001", "name": "...", "title": "...", "avatar": "..." } ], "infoBanner": { "enabled": true, "texts": ["..."] }, "heroExperts": [ { "id": "he-001", "name": "...", "title": "...", "avatar": "..." } ] } ```