实现直播详情页

This commit is contained in:
yuchenglong
2026-01-14 18:15:13 +08:00
parent 8dc87c9b29
commit 025b483099
18 changed files with 2497 additions and 347 deletions

View File

@@ -17,6 +17,75 @@ export interface Match {
meta?: string;
scoreText: string;
fav: boolean;
leagueId?: number;
sportId?: number;
isLive?: boolean;
}
export interface LiveScoreMatch {
event_key: number;
event_date: string;
event_time: string;
event_home_team: string;
home_team_key: number;
home_team_logo: string;
event_away_team: string;
away_team_key: number;
away_team_logo: string;
event_final_result: string;
event_halftime_result: string;
event_status: string;
event_live: string;
league_key: number;
league_name: string;
league_logo: string;
league_round: string;
league_season: string;
country_name: string;
country_logo: string;
event_country_key: number;
goalscorers?: {
time: string;
home_scorer: string;
home_scorer_id: string;
home_assist: string;
home_assist_id: string;
score: string;
away_scorer: string;
away_scorer_id: string;
away_assist: string;
away_assist_id: string;
info: string;
info_time: string;
}[];
cards?: {
time: string;
home_fault: string;
card: string;
away_fault: string;
info: string;
home_player_id: string;
away_player_id: string;
info_time: string;
}[];
substitutes?: {
time: string;
home_scorer:
| { in: string; out: string; in_id: number; out_id: number }
| any[];
away_scorer:
| { in: string; out: string; in_id: number; out_id: number }
| any[];
info: string;
info_time: string;
score: string;
}[];
lineups?: unknown;
statistics?: {
type: string;
home: string;
away: string;
}[];
}
export interface ApiResponse<T> {