Files
physical-expo/types/api.ts
2026-01-13 09:26:13 +08:00

78 lines
1.5 KiB
TypeScript

export interface Sport {
id: number;
name: string;
description: string;
icon: string;
isActive: boolean;
updatedAt: string;
createdAt: string;
}
export interface Match {
id: string;
league: string;
time: string;
home: string;
away: string;
meta?: string;
scoreText: string;
fav: boolean;
}
export interface ApiResponse<T> {
code: number;
message: string;
data: T;
}
export interface ApiListResponse<T> {
list: T[];
total: number;
}
export interface MatchDetailData {
events: any[];
match: {
ID: number;
CreatedAt: string;
UpdatedAt: string;
DeletedAt: string | null;
eventKey: string;
eventDate: string;
eventTime: string;
eventHomeTeam: string;
homeTeamKey: string;
homeTeamLogo: string;
eventAwayTeam: string;
awayTeamKey: string;
awayTeamLogo: string;
eventHalftimeResult: string;
eventFinalResult: string;
eventFtResult: string;
eventPenaltyResult: string;
eventStatus: string;
countryName: string;
leagueName: string;
leagueKey: string;
leagueRound: string;
leagueSeason: string;
eventLive: string;
eventStadium: string;
eventReferee: string;
eventCountryKey: string;
leagueLogo: string;
countryLogo: string;
eventHomeFormation: string;
eventAwayFormation: string;
fkStageKey: string;
stageName: string;
leagueGroup: string;
sportId: number;
eventQuarter: string;
eventSet: string;
eventType: string;
eventToss: string;
eventManOfMatch: string;
};
}