2026-06-12¶
CouCou backend:建 repo + M1/M2 详细接口设计¶
- 创建 GitHub 仓库(sentino-jp org,PRIVATE):
coucou-server(后端 auth gateway + 业务层,Java .gitignore)
coucou-app(前端 H5,Node .gitignore)
- 回写 coucou-backend-api-design frontmatter
repo: 字段 TBD → coucou-server URL
- M1 identity 详细接口(coucou-backend-api-design §7):
coucou.user_profiles schema(关联 dragonflow uid,不复制 user,只存 capability flag)+ capability 判定规则(is_fan 来自验证码激活、is_creator 来自 AuthResponse.workspaces 角色检测)+ GET /me 转发 merge profile(一次拿 user + capability)+ 边界 case
- M2 agent 读取契约(同文档 §8):三个读取场景(My Characters / 角色列表 overlay / Player Detail / Plan Sheet)+
coucou.coucou_subscriptions schema(独立表,Stripe 字段 M1 预留 7.15 才写,sprint 内 admin grant)+ 各 endpoint Response DTO + admin/seed endpoint + 边界 case
- 两个设计决策(拍板):① 订阅关系存独立 subscriptions 表(非 profile jsonb),便于 7.15 接 Stripe + 算 tier/到期;②
GET /me 转发 workflow-api + merge coucou profile,H5 一次拿全 capability