Files
xiaoxia-saas/apps/api
xiaoxia-agent e837847e20 fix(#1895): subscription schema 补全旧版字段兼容集成测试
- SubscriptionInfo 补 plan_id/plan_name/billing_cycle/current_period_*/amount/auto_renew 等旧字段
- BillingRecord 补 plan_id/plan_name/billing_cycle/amount/status/paid_at/period_* 等旧字段
- ChangePlanRequest target_plan_id/billing_cycle 改必填(对齐 fixture 校验期望)
- ToggleAutoRenewRequest.enabled 改必填(对齐 422 校验测试)
- ChangePlanResponse 加 new_subscription 字段返回新版 SubscriptionInfo
2026-09-15 12:10:05 +08:00
..
2026-06-15 15:17:40 +08:00
2026-07-11 16:29:07 +08:00
2026-06-15 15:17:40 +08:00

xiaoxia-saas API

结构

  • app/core/:配置与基础能力
  • app/api/:路由组织
  • app/schemas/:请求响应模型
  • app/dependencies.py:依赖注入入口
  • main.py:FastAPI 启动入口

当前可用接口

  • GET /api/health
  • GET /api/projects?workspace_id=...
  • POST /api/projects