fix(core): 跨 crate 小修复 — dto 合并、tracing 补全、死代码清理

- erp-ai: 删除孤立 dto.rs(已合并到子模块)
- erp-core: audit_service tracing 优化
- erp-health: points_handler 补充返回值、alert_engine 修正日志级别
- erp-plugin: host/data_handler/market_handler tracing 统一
- erp-dialysis/event: 移除无用 import
- erp-workflow/executor: tracing 格式统一
This commit is contained in:
iven
2026-05-03 19:31:46 +08:00
parent d378e154c4
commit 3412d807e3
12 changed files with 44 additions and 229 deletions

View File

@@ -1061,7 +1061,7 @@ where
pub async fn delete_user_view<S>(
State(state): State<PluginState>,
Extension(ctx): Extension<TenantContext>,
Path((plugin_id, entity, view_id)): Path<(Uuid, String, Uuid)>,
Path((_plugin_id, _entity, view_id)): Path<(Uuid, String, Uuid)>,
) -> Result<Json<ApiResponse<()>>, AppError>
where
PluginState: FromRef<S>,

View File

@@ -210,7 +210,7 @@ where
).await?;
let plugin_id = plugin_resp.id;
let plugin_resp = crate::service::PluginService::install(
let _plugin_resp = crate::service::PluginService::install(
plugin_id,
ctx.tenant_id,
ctx.user_id,

View File

@@ -150,7 +150,7 @@ impl host_api::Host for HostState {
.ok_or_else(|| format!("实体 '{}' 的查询结果未预填充", entity));
}
let db = self.db.clone().unwrap();
let db = self.db.clone().ok_or("数据库连接不可用")?;
let event_bus = self.event_bus.clone()
.ok_or("事件总线不可用")?;
@@ -314,7 +314,7 @@ impl host_api::Host for HostState {
let db = self.db.clone()
.ok_or("编号生成需要数据库连接")?;
let tenant_id = self.tenant_id;
let _tenant_id = self.tenant_id;
let plugin_id = self.plugin_id.clone();
let rt = tokio::runtime::Handle::current();