Files
danyang-match/docs/Phase-20-V11-Completion-Report.md
T

48 lines
1.6 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.
# Phase 20 完成报告:Analytics数据统计扩展
> 版本基线:v1.0.0-RC.2 → v1.1.0-dev | 日期:2026-09-08
> 对应 EPIC:EPIC-P20-V11
---
## 完成摘要
| 项目 | 内容 |
|------|------|
| Phase | 20 |
| 模块 | 公益项目数据统计扩展 |
| 状态 | ✅ 已完成 |
---
## 新增API端点
| 方法 | 路径 | 说明 |
|------|------|------|
| GET | `/operator/analytics/v11-dashboard` | V1.1综合Dashboard |
| GET | `/operator/analytics/v11/banners` | Banner统计 |
| GET | `/operator/analytics/v11/appointments` | 服务预约统计 |
| GET | `/operator/analytics/v11/counseling` | 咨询统计 |
| GET | `/operator/analytics/v11/premarital` | 婚前辅导统计 |
| GET | `/operator/analytics/v11/content` | 内容阅读统计 |
| GET | `/operator/analytics/v11/local-eligibility` | 本地资格统计 |
| GET | `/operator/analytics/v11/service-programs` | 专项项目统计 |
| GET | `/operator/analytics/v11/registration-sources` | 报名来源分布 |
| GET | `/operator/analytics/v11/unique-service-users` | 去重用户统计 |
| GET | `/operator/analytics/v11/effective-connections` | 有效牵手指标 |
---
## 统计指标定义
| 指标 | 计算方式 |
|------|----------|
| EFFECTIVE_CONNECTION_RATE | 有聊天的Match数 / 总active Match数 × 100% |
| UNIQUE_SERVICE_USERS | counseling + appointment + program + eligibility 四表userId并集 |
| REGISTRATION_SOURCE_DISTRIBUTION | activity_registrations.source字段分组计数 |
| CONTENT_TOP5 | content_articles按view_count降序取前5 |
---
*Phase 20 完成。下一阶段:Phase 21(账户生命周期增量)*