添加收藏
This commit is contained in:
23
types/api.ts
23
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;
|
||||
@@ -94,6 +94,20 @@ export interface ApiResponse<T> {
|
||||
data: T;
|
||||
}
|
||||
|
||||
export interface FavoriteRequest {
|
||||
matchId?: number;
|
||||
notify?: boolean;
|
||||
playerId?: number;
|
||||
teamId?: number;
|
||||
type: "match" | "team" | "player";
|
||||
typeId: string;
|
||||
}
|
||||
|
||||
export interface FavoriteCheckResponse {
|
||||
favoriteId: number;
|
||||
isFavorite: boolean;
|
||||
}
|
||||
|
||||
export interface ApiListResponse<T> {
|
||||
list: T[];
|
||||
total: number;
|
||||
@@ -185,6 +199,7 @@ export interface UpcomingMatch {
|
||||
eventDate: string;
|
||||
eventTime: string;
|
||||
status: string; // scheduled
|
||||
fav?: boolean;
|
||||
venue: string;
|
||||
referee: string;
|
||||
homeTeamKey: string;
|
||||
|
||||
Reference in New Issue
Block a user