实现首页功能,添加体育项目和今日比赛数据的加载,更新国际化文本,新增选择和日历模态框组件
This commit is contained in:
29
types/api.ts
Normal file
29
types/api.ts
Normal file
@@ -0,0 +1,29 @@
|
||||
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: {
|
||||
list: T[];
|
||||
total: number;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user