添加搜索接口

This commit is contained in:
xianyi
2026-01-15 10:03:50 +08:00
parent 5c98436a66
commit 0dbc5aa11b
3 changed files with 150 additions and 7 deletions

View File

@@ -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[];
}