实现详情页
This commit is contained in:
54
types/api.ts
54
types/api.ts
@@ -22,8 +22,56 @@ export interface Match {
|
||||
export interface ApiResponse<T> {
|
||||
code: number;
|
||||
message: string;
|
||||
data: {
|
||||
list: T[];
|
||||
total: number;
|
||||
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;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user