feat(ai): 新增预算状态 + 成本估算 API 端点
Some checks failed
CI / frontend-build (push) Has been cancelled
CI / security-audit (push) Has been cancelled
CI / rust-check (push) Has been cancelled
CI / rust-test (push) Has been cancelled

Phase 3 Task 25:
- GET /ai/budget/status — 租户月度预算状态和告警等级
- GET /ai/cost/estimate — 按分析类型+模型估算单次成本
This commit is contained in:
iven
2026-05-05 16:05:00 +08:00
parent 0da59c6a0e
commit 7dac749eff
2 changed files with 44 additions and 0 deletions

View File

@@ -359,5 +359,13 @@ impl AiModule {
"/ai/quota/summary",
axum::routing::get(crate::handler::quota_summary),
)
.route(
"/ai/budget/status",
axum::routing::get(crate::handler::budget_status),
)
.route(
"/ai/cost/estimate",
axum::routing::get(crate::handler::cost_estimate),
)
}
}