添加收藏

This commit is contained in:
yuchenglong
2026-01-16 14:41:15 +08:00
parent 4bccf39a8b
commit d20080eaf3
11 changed files with 656 additions and 75 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;
@@ -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;