实现收藏页面
This commit is contained in:
19
types/api.ts
19
types/api.ts
@@ -490,3 +490,22 @@ export interface UserProfile {
|
||||
nickname: string;
|
||||
avatar: string;
|
||||
}
|
||||
|
||||
export interface FavoriteItem {
|
||||
id: number;
|
||||
type: string; // "match" | "team" | "player" | "league"
|
||||
typeId: string;
|
||||
matchId?: number;
|
||||
teamId?: number;
|
||||
playerId?: number;
|
||||
match?: any;
|
||||
team?: any;
|
||||
player?: any;
|
||||
notify: boolean;
|
||||
createdAt: string;
|
||||
}
|
||||
|
||||
export interface FavoriteListResponse {
|
||||
list: FavoriteItem[];
|
||||
total: number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user