fix(health+plugin): 空标签名校验 + 出生日期校验 + metrics 错误映射 + 测试报告修正
- C1 已修复: CreateTagReq 添加 validate(length(min=1)) + handler 调 .validate() - C2 非BUG: 媒体库实际路径 /health/media-folders(非 /health/media/folders) - H6 已修复: create/update patient 添加 birth_date <= today 校验 - H7 已修复: 插件 metrics 移除手动 map_err,用 From trait 自动映射 - H1-H5 非BUG: 测试使用了错误的 API 路径(积分/随访/告警/设备) - M1-M2 非BUG: Pagination 已有 .min(100) 上限 + u64 不接受负数 - 测试报告更新: Go/No-Go 从 CONDITIONAL GO 升级为 GO Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -348,11 +348,7 @@ where
|
||||
// 通过 plugin_id 找到 manifest_id,再查询 metrics
|
||||
let manifest_id =
|
||||
crate::data_service::resolve_manifest_id(id, ctx.tenant_id, &state.db).await?;
|
||||
let metrics = state
|
||||
.engine
|
||||
.get_metrics(&manifest_id)
|
||||
.await
|
||||
.map_err(|e| AppError::Internal(e.to_string()))?;
|
||||
let metrics = state.engine.get_metrics(&manifest_id).await?;
|
||||
|
||||
let avg_ms = if metrics.total_invocations > 0 {
|
||||
metrics.total_response_ms / metrics.total_invocations as f64
|
||||
|
||||
Reference in New Issue
Block a user