完善后台管理功能:订阅管理增强、训练精度面板、支付记录查询

This commit is contained in:
2569718930@qq.com
2026-05-20 16:50:19 +08:00
parent 05f5d3c2dd
commit 66512d2623
8 changed files with 356 additions and 9 deletions
+21
View File
@@ -105,4 +105,25 @@ export const opsApi = {
count: number;
}>(`/api/ops/subscriptions/user?email=${encodeURIComponent(email)}`);
},
trainingAccuracy() {
return opsFetch<{
accuracy: Array<{
city_id: string;
name: string;
deb?: {
hit_rate: number;
mae: number;
total_days: number;
details_str: string;
} | null;
mu?: {
mae: number;
hit_rate: number;
brier_score: number | null;
total_days: number;
details_str: string;
} | null;
}>;
}>("/api/ops/training/accuracy");
},
};