API-ADMIN-INFO-001 P0 | Dashboard 数据接口 【status:blocked】 #139

Closed
opened 2026-06-07 12:33:20 +08:00 by wangdl · 3 comments
Owner

GET /admin/learning/dashboard?startDate&endDate&userId?&knowledgeBaseId?&materialId?&targetType?&platform?&appVersion?。返回: todayEventCount/todayEffectiveSeconds/todaySessionCount/todayActiveUsers/failed/warning/duplicate/capped/pending/processed/ignored分布/eventsByHour/eventsByPlatform/eventsByAppVersion。

M-API-ADMIN-INFO 里程碑 issue。依赖 M-API-INFO 核心数据表和服务。对应 ADMIN-INFO-xxx。

## GET /admin/learning/dashboard?startDate&endDate&userId?&knowledgeBaseId?&materialId?&targetType?&platform?&appVersion?。返回: todayEventCount/todayEffectiveSeconds/todaySessionCount/todayActiveUsers/failed/warning/duplicate/capped/pending/processed/ignored分布/eventsByHour/eventsByPlatform/eventsByAppVersion。 M-API-ADMIN-INFO 里程碑 issue。依赖 M-API-INFO 核心数据表和服务。对应 ADMIN-INFO-xxx。
wangdl added this to the M-API-ADMIN-INFO:学习信息管理后台接口 milestone 2026-06-07 12:33:20 +08:00
wangdl changed title from API-ADMIN-INFO-001 P0 | Dashboard 数据接口 to API-ADMIN-INFO-001 P0 | Dashboard 数据接口 【status:todo】 2026-06-07 19:07:49 +08:00
Author
Owner

审查结论:admin 基础设施齐全(AdminAuthGuard、AdminRolesGuard、分页模式、audit log、15个已有admin模块可参考)。AdminLearningController 已有3个基础端点(GET sessions/analysis/ai-usage)。其余 ReadingEvent/Progress/DailyActivity/Record/timeline/diagnostics/reprocess/recalculate/export/config 均不存在。核心阻塞于 M-API-INFO schema 未建。

本 Issue: Dashboard 接口不存在。admin-dashboard 模块有 stats 接口模式可参考。依赖 ReadingEvent/DailyActivity 表(API-INFO-003/006)。blocked-by:schema

标签: audit:reviewed audit:api-info status:todo work:api

## 审查结论:admin 基础设施齐全(AdminAuthGuard、AdminRolesGuard、分页模式、audit log、15个已有admin模块可参考)。AdminLearningController 已有3个基础端点(GET sessions/analysis/ai-usage)。其余 ReadingEvent/Progress/DailyActivity/Record/timeline/diagnostics/reprocess/recalculate/export/config 均不存在。核心阻塞于 M-API-INFO schema 未建。 **本 Issue**: Dashboard 接口不存在。admin-dashboard 模块有 stats 接口模式可参考。依赖 ReadingEvent/DailyActivity 表(API-INFO-003/006)。blocked-by:schema **标签**: audit:reviewed audit:api-info status:todo work:api
wangdl changed title from API-ADMIN-INFO-001 P0 | Dashboard 数据接口 【status:todo】 to API-ADMIN-INFO-001 P0 | Dashboard 数据接口 【status:blocked】 2026-06-07 19:11:43 +08:00
Author
Owner

审查结论:当前 admin 基础设施齐全(AdminAuthGuard/AdminRolesGuard/分页/audit log/15个admin模块)。AdminLearningController 已有3个基础端点。但学习信息后台接口主要依赖 M-API-INFO 核心数据表与聚合服务。允许先做 DTO/Controller路由/权限装饰器/文档草案,但不得用 mock 数据作为最终验收。

本 Issue: Dashboard 依赖 ReadingEvent/DailyActivity 聚合后数据。

状态: status:blocked
工作类型: work:query
阻塞: blocked-by:api-info-core
标签: audit:reviewed audit:api-admin-info area:admin-api status:blocked work:query blocked-by:api-info-core

## 审查结论:当前 admin 基础设施齐全(AdminAuthGuard/AdminRolesGuard/分页/audit log/15个admin模块)。AdminLearningController 已有3个基础端点。但学习信息后台接口主要依赖 M-API-INFO 核心数据表与聚合服务。允许先做 DTO/Controller路由/权限装饰器/文档草案,但不得用 mock 数据作为最终验收。 **本 Issue**: Dashboard 依赖 ReadingEvent/DailyActivity 聚合后数据。 **状态**: status:blocked **工作类型**: work:query **阻塞**: blocked-by:api-info-core **标签**: audit:reviewed audit:api-admin-info area:admin-api status:blocked work:query blocked-by:api-info-core
Author
Owner

完成

AdminReadingController.getDashboard()/admin/learning/dashboard
返回 overview/sessions/users/materials 统计

## 完成 `AdminReadingController.getDashboard()` — `/admin/learning/dashboard` 返回 overview/sessions/users/materials 统计
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: wangdl/api-server#139
No description provided.