fix: 修改字段名称

This commit is contained in:
tbphp
2025-07-04 14:24:48 +08:00
parent c940bf5a93
commit e504fb98d7
3 changed files with 34 additions and 8 deletions

View File

@@ -11,18 +11,44 @@ export interface APIKey {
updated_at: string;
}
export interface UpstreamInfo {
url: string;
weight: number;
}
export interface Group {
id: number;
name: string;
nickname: string;
display_name: string;
description: string;
channel_type: "openai" | "gemini";
config: string;
sort: number;
channel_type: "openai" | "gemini" | "silicon" | "chutes";
upstreams: UpstreamInfo[];
config: Record<string, unknown>;
api_keys?: APIKey[];
created_at: string;
updated_at: string;
}
export interface GroupStats {
total_keys: number;
active_keys: number;
requests_1h: number;
requests_24h: number;
requests_7d: number;
failure_rate_24h: number;
}
export interface TaskInfo {
is_running: boolean;
task_name?: string;
group_id?: number;
group_name?: string;
processed?: number;
total?: number;
started_at?: string;
}
export interface RequestLog {
id: string;
timestamp: string;
@@ -59,6 +85,6 @@ export interface DashboardStats {
}
export interface GroupRequestStat {
group_nickname: string;
display_name: string;
request_count: number;
}