feat(server): 集成 SuggestionService 到 AiState 初始化
Some checks failed
CI / rust-check (push) Has been cancelled
CI / rust-test (push) Has been cancelled
CI / frontend-build (push) Has been cancelled
CI / security-audit (push) Has been cancelled

This commit is contained in:
iven
2026-05-01 08:14:41 +08:00
parent 415d7617c8
commit 4b3193fcd6

View File

@@ -454,6 +454,7 @@ async fn main() -> anyhow::Result<()> {
);
let prompt = std::sync::Arc::new(erp_ai::service::prompt::PromptService::new(db.clone()));
let usage = std::sync::Arc::new(erp_ai::service::usage::UsageService::new(db.clone()));
let suggestion = std::sync::Arc::new(erp_ai::service::suggestion::SuggestionService);
let health_provider = std::sync::Arc::new(erp_health::HealthDataProviderImpl {
db: db.clone(),
});
@@ -463,6 +464,7 @@ async fn main() -> anyhow::Result<()> {
analysis,
prompt,
usage,
suggestion,
health_provider,
}
};