## 概述 为 reporting-service 实现完整的 Dashboard API 端点,支持统计卡片、趋势图表、 区域分布和最近活动等功能。 ## API 端点 - GET /dashboard/stats: 获取统计卡片数据 - GET /dashboard/charts: 获取趋势图表数据 (支持 7d/30d/90d 周期) - GET /dashboard/region: 获取区域分布数据 - GET /dashboard/activities: 获取最近活动列表 ## 新增 DTO - DashboardStatsResponseDto: 统计卡片响应 - DashboardTrendResponseDto: 趋势数据响应 - DashboardRegionResponseDto: 区域分布响应 - DashboardActivitiesResponseDto: 活动列表响应 ## Repository 层 - IDashboardStatsSnapshotRepository: 统计快照接口 - IDashboardTrendDataRepository: 趋势数据接口 - ISystemActivityRepository: 系统活动接口 ## External Clients (已弃用) - AuthorizationServiceClient: 授权服务客户端 - IdentityServiceClient: 身份服务客户端 注:已改为事件驱动架构,这些客户端仅作为备用 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| docs | ||
| prisma | ||
| src | ||
| test | ||
| .dockerignore | ||
| .env.development | ||
| .env.example | ||
| .gitignore | ||
| DEVELOPMENT_GUIDE.md | ||
| Dockerfile | ||
| Dockerfile.test | ||
| Makefile | ||
| deploy.sh | ||
| docker-compose.test.yml | ||
| nest-cli.json | ||
| package-lock.json | ||
| package.json | ||
| tsconfig.build.json | ||
| tsconfig.json | ||