篮球live详情
This commit is contained in:
71
types/api.ts
71
types/api.ts
@@ -52,10 +52,10 @@ export interface LiveScoreMatch {
|
||||
event_time: string;
|
||||
event_home_team: string;
|
||||
home_team_key: number;
|
||||
home_team_logo: string;
|
||||
home_team_logo: string | null;
|
||||
event_away_team: string;
|
||||
away_team_key: number;
|
||||
away_team_logo: string;
|
||||
away_team_logo: string | null;
|
||||
event_final_result: string;
|
||||
event_halftime_result: string;
|
||||
event_status: string;
|
||||
@@ -68,6 +68,7 @@ export interface LiveScoreMatch {
|
||||
country_name: string;
|
||||
country_logo: string;
|
||||
event_country_key: number;
|
||||
event_quarter?: string;
|
||||
// Tennis specific
|
||||
event_first_player?: string;
|
||||
event_first_player_logo?: string;
|
||||
@@ -75,7 +76,12 @@ export interface LiveScoreMatch {
|
||||
event_second_player_logo?: string;
|
||||
event_serve?: string;
|
||||
pointbypoint?: any[];
|
||||
scores?: any[]; // LiveScoreMatch uses array for scores, Match uses string
|
||||
scores?: any[] | {
|
||||
"1stQuarter"?: Array<{ score_home: string; score_away: string }>;
|
||||
"2ndQuarter"?: Array<{ score_home: string; score_away: string }>;
|
||||
"3rdQuarter"?: Array<{ score_home: string; score_away: string }>;
|
||||
"4thQuarter"?: Array<{ score_home: string; score_away: string }>;
|
||||
};
|
||||
goalscorers?: {
|
||||
time: string;
|
||||
home_scorer: string;
|
||||
@@ -112,7 +118,64 @@ export interface LiveScoreMatch {
|
||||
info_time: string;
|
||||
score: string;
|
||||
}[];
|
||||
lineups?: unknown;
|
||||
lineups?: {
|
||||
home_team?: {
|
||||
starting_lineups?: Array<{ player: string; player_id: number }>;
|
||||
substitutes?: Array<{ player: string; player_id: number }>;
|
||||
};
|
||||
away_team?: {
|
||||
starting_lineups?: Array<{ player: string; player_id: number }>;
|
||||
substitutes?: Array<{ player: string; player_id: number }>;
|
||||
};
|
||||
};
|
||||
player_statistics?: {
|
||||
home_team?: Array<{
|
||||
player: string;
|
||||
player_id: number;
|
||||
player_position?: string;
|
||||
player_minutes?: string;
|
||||
player_points?: string;
|
||||
player_total_rebounds?: string;
|
||||
player_offence_rebounds?: string;
|
||||
player_defense_rebounds?: string;
|
||||
player_assists?: string;
|
||||
player_steals?: string;
|
||||
player_blocks?: string;
|
||||
player_turnovers?: string;
|
||||
player_personal_fouls?: string;
|
||||
player_plus_minus?: string;
|
||||
player_field_goals_made?: string;
|
||||
player_field_goals_attempts?: string;
|
||||
player_threepoint_goals_made?: string;
|
||||
player_threepoint_goals_attempts?: string;
|
||||
player_freethrows_goals_made?: string;
|
||||
player_freethrows_goals_attempts?: string;
|
||||
player_oncourt?: string | null;
|
||||
}>;
|
||||
away_team?: Array<{
|
||||
player: string;
|
||||
player_id: number;
|
||||
player_position?: string;
|
||||
player_minutes?: string;
|
||||
player_points?: string;
|
||||
player_total_rebounds?: string;
|
||||
player_offence_rebounds?: string;
|
||||
player_defense_rebounds?: string;
|
||||
player_assists?: string;
|
||||
player_steals?: string;
|
||||
player_blocks?: string;
|
||||
player_turnovers?: string;
|
||||
player_personal_fouls?: string;
|
||||
player_plus_minus?: string;
|
||||
player_field_goals_made?: string;
|
||||
player_field_goals_attempts?: string;
|
||||
player_threepoint_goals_made?: string;
|
||||
player_threepoint_goals_attempts?: string;
|
||||
player_freethrows_goals_made?: string;
|
||||
player_freethrows_goals_attempts?: string;
|
||||
player_oncourt?: string | null;
|
||||
}>;
|
||||
};
|
||||
statistics?: {
|
||||
type: string;
|
||||
home: string;
|
||||
|
||||
Reference in New Issue
Block a user