添加网球相关数据映射和逻辑到 MatchCard 组件,优化比赛信息展示
This commit is contained in:
23
types/api.ts
23
types/api.ts
@@ -37,6 +37,13 @@ export interface Match {
|
||||
isLive?: boolean;
|
||||
meta?: string;
|
||||
odds?: OddsItem[];
|
||||
// Tennis specific
|
||||
eventFirstPlayer?: string;
|
||||
eventSecondPlayer?: string;
|
||||
eventFirstPlayerLogo?: string;
|
||||
eventSecondPlayerLogo?: string;
|
||||
scores?: string;
|
||||
eventServe?: string;
|
||||
}
|
||||
|
||||
export interface LiveScoreMatch {
|
||||
@@ -61,6 +68,14 @@ export interface LiveScoreMatch {
|
||||
country_name: string;
|
||||
country_logo: string;
|
||||
event_country_key: number;
|
||||
// Tennis specific
|
||||
event_first_player?: string;
|
||||
event_first_player_logo?: string;
|
||||
event_second_player?: string;
|
||||
event_second_player_logo?: string;
|
||||
event_serve?: string;
|
||||
pointbypoint?: any[];
|
||||
scores?: any[]; // LiveScoreMatch uses array for scores, Match uses string
|
||||
goalscorers?: {
|
||||
time: string;
|
||||
home_scorer: string;
|
||||
@@ -88,11 +103,11 @@ export interface LiveScoreMatch {
|
||||
substitutes?: {
|
||||
time: string;
|
||||
home_scorer:
|
||||
| { in: string; out: string; in_id: number; out_id: number }
|
||||
| any[];
|
||||
| { in: string; out: string; in_id: number; out_id: number }
|
||||
| any[];
|
||||
away_scorer:
|
||||
| { in: string; out: string; in_id: number; out_id: number }
|
||||
| any[];
|
||||
| { in: string; out: string; in_id: number; out_id: number }
|
||||
| any[];
|
||||
info: string;
|
||||
info_time: string;
|
||||
score: string;
|
||||
|
||||
Reference in New Issue
Block a user