feat(health): 添加工作台统计和团队概览 API
- ActionInboxService 新增 get_workbench_stats 和 get_team_overview - Handler 新增 /health/action-inbox/stats 和 /team 端点 - 注册 health.action-inbox.team 权限码
This commit is contained in:
@@ -691,6 +691,14 @@ impl HealthModule {
|
||||
"/health/action-inbox",
|
||||
axum::routing::get(action_inbox_handler::list_action_inbox),
|
||||
)
|
||||
.route(
|
||||
"/health/action-inbox/stats",
|
||||
axum::routing::get(action_inbox_handler::get_workbench_stats),
|
||||
)
|
||||
.route(
|
||||
"/health/action-inbox/team",
|
||||
axum::routing::get(action_inbox_handler::get_team_overview),
|
||||
)
|
||||
.route(
|
||||
"/health/action-inbox/{source_ref}/thread",
|
||||
axum::routing::get(action_inbox_handler::get_action_thread),
|
||||
@@ -1074,6 +1082,12 @@ impl ErpModule for HealthModule {
|
||||
description: "审批/拒绝/标记行动收件箱中的事项".into(),
|
||||
module: "health".into(),
|
||||
},
|
||||
PermissionDescriptor {
|
||||
code: "health.action-inbox.team".into(),
|
||||
name: "查看团队概览".into(),
|
||||
description: "查看科室团队工作负载和风险分布(主任专属)".into(),
|
||||
module: "health".into(),
|
||||
},
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user