feat: 优化调整前端代码

This commit is contained in:
tbphp
2025-07-12 11:28:30 +08:00
parent a340deaf1b
commit 500b91a2bc
4 changed files with 57 additions and 19 deletions

View File

@@ -1,4 +1,11 @@
import type { APIKey, Group, GroupConfigOption, KeyStatus, TaskInfo } from "@/types/models";
import type {
APIKey,
Group,
GroupConfigOption,
GroupStats,
KeyStatus,
TaskInfo,
} from "@/types/models";
import http from "@/utils/http";
export const keysApi = {
@@ -26,10 +33,16 @@ export const keysApi = {
},
// 获取分组统计信息
async getGroupStats(): Promise<any> {
// 传参补充groupId
async getGroupStats(): Promise<GroupStats> {
await new Promise(resolve => setTimeout(resolve, 200));
return {};
return {
total_keys: 0,
active_keys: 0,
requests_1h: 0,
requests_24h: 0,
requests_7d: 0,
failure_rate_24h: 0,
} as GroupStats;
},
// 获取分组可配置参数