geo/docs/04-API文档
chiguyong b41da42d74 feat(geo): U1-U9 monetization closed loop implementation
U1: GEO diagnosis auto data collection (DataCollectorService + 11 tests)
U2: Free GEO health score public page (HealthScoreAPI + 7 tests)
U3: Onboarding redesign with conversion layer (Step0 + UpgradePrompt + 14 tests)
U4: Real payment integration (WeChat/Alipay gateway + PaymentOrder + 12 tests)
U5: AI content generation & distribution (Publishers + PublishEngine + 11 tests)
U6: Attribution system & ROI reports (AttributionEngine + ROICalculator + 12 tests)
U7: Email integration & Dashboard monetization UI (EmailScheduler + templates + 22 tests)
U8: Integration tests & shared fixtures (monetization flow + fixture consolidation + 12 tests)
U9: E2E smoke tests (HealthScorePage + acquisition/core flow + 4 E2E cases)

Total: 101 new backend tests passing, 4 E2E test cases
All third-party integrations use mock mode by default with config center management
2026-06-01 07:39:05 +08:00
..
README.md feat(geo): U1-U9 monetization closed loop implementation 2026-06-01 07:39:05 +08:00
auth.md feat: P0-P2功能实现 + GEO workflow分析与规划 2026-05-25 09:45:18 +08:00
brands.md feat: P0-P2功能实现 + GEO workflow分析与规划 2026-05-25 09:45:18 +08:00
content.md feat: P0-P2功能实现 + GEO workflow分析与规划 2026-05-25 09:45:18 +08:00
health.md feat: P0-P2功能实现 + GEO workflow分析与规划 2026-05-25 09:45:18 +08:00
knowledge.md feat: P0-P2功能实现 + GEO workflow分析与规划 2026-05-25 09:45:18 +08:00

README.md

API文档

本目录包含GEO平台的API接口文档共33个API模块。

文档内容

诊断模块API

诊断模块提供3个核心端点

端点 描述 状态
GET /api/v1/diagnosis/seo/{brand_id} 获取品牌的SEO诊断结果 已完成
GET /api/v1/diagnosis/geo/{brand_id} 获取品牌的GEO诊断结果 已完成
GET /api/v1/diagnosis/combined/{brand_id} 获取品牌的SEO+GEO综合诊断结果 已完成

详细说明请查看 诊断模块说明

API基础信息

  • 基础URL: http://localhost:8000
  • API版本: v1
  • 认证方式: Bearer Token (JWT)
  • 响应格式: JSON

通用响应格式

{
  "success": true,
  "data": {},
  "message": "操作成功",
  "error": null
}

错误响应

{
  "success": false,
  "data": null,
  "message": "错误描述",
  "error": {
    "code": "ERROR_CODE",
    "details": {}
  }
}

认证

除健康检查外所有API都需要认证

curl -H "Authorization: Bearer <token>" http://localhost:8000/api/v1/...