添加搜索接口
This commit is contained in:
122
types/api.ts
122
types/api.ts
@@ -71,11 +71,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;
|
||||
@@ -287,3 +287,117 @@ export interface OddsData {
|
||||
data: OddsItem[];
|
||||
};
|
||||
}
|
||||
|
||||
// 搜索结果 - 联赛
|
||||
export interface SearchLeague {
|
||||
ID: number;
|
||||
CreatedAt: string;
|
||||
UpdatedAt: string;
|
||||
DeletedAt: string | null;
|
||||
name: string;
|
||||
countryKey: string;
|
||||
countryName: string;
|
||||
countryLogo: string;
|
||||
sportId: number;
|
||||
logo: string;
|
||||
description: string;
|
||||
isActive: boolean;
|
||||
key: string;
|
||||
surface: string;
|
||||
}
|
||||
|
||||
// 搜索结果 - 球员
|
||||
export interface SearchPlayer {
|
||||
ID: number;
|
||||
CreatedAt: string;
|
||||
UpdatedAt: string;
|
||||
DeletedAt: string | null;
|
||||
name: string;
|
||||
countryKey: string;
|
||||
countryName: string;
|
||||
countryLogo: string;
|
||||
teamKey: string;
|
||||
teamName: string;
|
||||
teamLogo: string;
|
||||
leagueKey: string;
|
||||
leagueName: string;
|
||||
position: string;
|
||||
photo: string;
|
||||
key: string;
|
||||
isActive: boolean;
|
||||
playerNumber: string;
|
||||
playerAge: string;
|
||||
playerMatchPlayed: string;
|
||||
playerGoals: string;
|
||||
playerYellowCards: string;
|
||||
playerRedCards: string;
|
||||
playerMinutes: string;
|
||||
playerInjured: string;
|
||||
playerSubstituteOut: string;
|
||||
playerSubstitutesOnBench: string;
|
||||
playerAssists: string;
|
||||
playerIsCaptain: string;
|
||||
playerShotsTotal: string;
|
||||
playerGoalsConceded: string;
|
||||
playerFoulsCommited: string;
|
||||
playerTackles: string;
|
||||
playerBlocks: string;
|
||||
playerCrossesTotal: string;
|
||||
playerInterceptions: string;
|
||||
playerClearances: string;
|
||||
playerDispossesed: string;
|
||||
playerSaves: string;
|
||||
playerInsideBoxSaves: string;
|
||||
playerDuelsTotal: string;
|
||||
playerDuelsWon: string;
|
||||
playerDribbleAttempts: string;
|
||||
playerDribbleSucc: string;
|
||||
playerPenComm: string;
|
||||
playerPenWon: string;
|
||||
playerPenScored: string;
|
||||
playerPenMissed: string;
|
||||
playerPasses: string;
|
||||
playerPassesAccuracy: string;
|
||||
playerKeyPasses: string;
|
||||
playerRating: string;
|
||||
sportId: number;
|
||||
playerPoints: string;
|
||||
playerRebounds: string;
|
||||
playerSteals: string;
|
||||
playerRank: string;
|
||||
playerTitles: string;
|
||||
playerBday: string;
|
||||
playerRuns: string;
|
||||
playerWickets: string;
|
||||
playerOvers: string;
|
||||
stats: any;
|
||||
tournaments: any;
|
||||
}
|
||||
|
||||
// 搜索结果 - 球队
|
||||
export interface SearchTeam {
|
||||
ID: number;
|
||||
CreatedAt: string;
|
||||
UpdatedAt: string;
|
||||
DeletedAt: string | null;
|
||||
name: string;
|
||||
countryKey: string;
|
||||
countryName: string;
|
||||
countryLogo: string;
|
||||
leagueKey: string;
|
||||
leagueName: string;
|
||||
leagueLogo: string;
|
||||
logo: string;
|
||||
description: string;
|
||||
founded: number;
|
||||
key: string;
|
||||
isActive: boolean;
|
||||
sportId: number;
|
||||
}
|
||||
|
||||
// 搜索结果
|
||||
export interface SearchResult {
|
||||
leagues: SearchLeague[];
|
||||
players: SearchPlayer[];
|
||||
teams: SearchTeam[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user