Files
soul-yongping/.cursor/agent/后端工程师/evolution/2026-02-28.md

24 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 后端开发 经验记录 - 2026-02-28
## stitch_soul 需求评审会议
- **现有基础**soul-api 已有 chapter、book、vip 模型;导师能力需新建或扩展现有 match 体系(现有 mentor 为 match 类型,非独立导师实体)。
- **待设计**:导师列表/详情/搜索筛选、预约单、会员权益与预约支付打通;接口挂 `/api/miniprogram/*`
- **协同**:与产品核对 chapter/book/vip 现状后,给出导师/预约/会员权益的模型与接口方案。
## chapter/book/vip 模型补充(问题 5 作答)
- **chapters 表**每行一节id 如 1.1/prefacepart/chapter/section 三层73 章=行数统计。
- **book**:无独立表,= chapters 聚合;接口 `/api/book/all-chapters``/api/book/chapter/:id`
- **vip**vip_roles 配置角色users 存 is_vip/vip_expire_date 等;权益优先 users无则 orders 兜底¥1980。
## 个人资料页实现评估会议
- **profile API**`GET/POST /api/miniprogram/user/profile` 已覆盖 skills 等全部扩展字段;无需新增接口。
## 文章类型(普通版/增值版)需求分析会议
- **premium_config**system_config 新增 premium_base_price、premium_chapter_count后 N 个 section
- **增值章节购买**:沿用 product_type=section、product_id=section_id金额为 chapters.price。
- **purchase-status 扩展**:需返回 editionType、premiumPurchasedSections 等。