feat(commands): add usage statistics Tauri commands

Register usage commands for summary, trends, logs, and pricing.
Expose usage stats service through Tauri command layer.
This commit is contained in:
YoVinchen
2025-12-03 00:19:36 +08:00
parent 6423e2e8ab
commit 96ec6c561e
4 changed files with 76 additions and 31 deletions
+11
View File
@@ -650,6 +650,17 @@ pub fn run() {
commands::get_proxy_config,
commands::update_proxy_config,
commands::is_proxy_running,
// Usage statistics
commands::get_usage_summary,
commands::get_usage_trends,
commands::get_provider_stats,
commands::get_model_stats,
commands::get_request_logs,
commands::get_request_detail,
commands::get_model_pricing,
commands::update_model_pricing,
commands::delete_model_pricing,
commands::check_provider_limits,
]);
let app = builder