- C3: handler 中 .map_err(AppError::Internal) 改为 ? 操作符,
利用 From<AiError> for AppError 实现正确的 HTTP 状态码映射
- H1: AiState 预构建在 AppState 初始化时,避免每次请求重建
ClaudeProvider/AnalysisService/PromptService/UsageService
- H3: stream_analyze 的 user_id 参数传递到 created_by/updated_by
- H5: SSE 事件添加 .event("chunk"/"error"/"done") 类型字段
- L3: erp-ai Cargo.toml 依赖改用 workspace 引用
(reqwest/handlebars/sha2/hex)
- 修复 erp-health 编译错误: points_handler 缺少 ColumnTrait 导入,
points_service 版本字段部分移动问题
26 lines
598 B
TOML
26 lines
598 B
TOML
[package]
|
|
name = "erp-ai"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
|
|
[dependencies]
|
|
erp-core.workspace = true
|
|
tokio = { workspace = true, features = ["full"] }
|
|
tokio-stream.workspace = true
|
|
futures.workspace = true
|
|
async-stream.workspace = true
|
|
serde.workspace = true
|
|
serde_json.workspace = true
|
|
uuid.workspace = true
|
|
chrono.workspace = true
|
|
axum.workspace = true
|
|
sea-orm.workspace = true
|
|
tracing.workspace = true
|
|
thiserror.workspace = true
|
|
utoipa.workspace = true
|
|
async-trait.workspace = true
|
|
reqwest.workspace = true
|
|
handlebars.workspace = true
|
|
sha2.workspace = true
|
|
hex.workspace = true
|