处理列表
This commit is contained in:
@@ -45,6 +45,7 @@ export interface ListState {
|
||||
timeBubbleData: BubbleOption[]
|
||||
dateRangeOptions: BubbleOption[]
|
||||
gamesNum: number
|
||||
isHasMoreData: boolean
|
||||
isScrollTop: boolean
|
||||
searchHistoryParams: Record<string, any>
|
||||
searchHistory: {id: number, title: string}[]
|
||||
@@ -61,7 +62,7 @@ export interface ListState {
|
||||
}
|
||||
|
||||
export interface ListActions {
|
||||
fetchMatches: (params?: Record<string, any>,isFirstLoad?: Boolean) => Promise<void>
|
||||
fetchMatches: (params?: Record<string, any>, isFirstLoad?: Boolean, isAppend?: boolean) => Promise<void>
|
||||
// getIntegrateListData: (params?: Record<string, any>) => Promise<void>
|
||||
getMatchesData: () => void
|
||||
clearError: () => void
|
||||
@@ -75,13 +76,15 @@ export interface ListActions {
|
||||
loadMoreMatches: () => void
|
||||
initialFilterSearch: () => void
|
||||
setListData: (payload: IPayload) => void
|
||||
fetchGetGamesCount: () => Promise<void>
|
||||
}
|
||||
|
||||
export interface IPayload {
|
||||
error: string;
|
||||
data: TennisMatch[];
|
||||
loading: boolean;
|
||||
gamesNum: number;
|
||||
count: number;
|
||||
isAppend?: boolean;
|
||||
}
|
||||
|
||||
// 快捷筛选
|
||||
@@ -178,4 +181,13 @@ export interface ListCardProps {
|
||||
shinei: string;
|
||||
showSkeleton?: boolean;
|
||||
key?: string
|
||||
participants: {
|
||||
avatar_url: string;
|
||||
}[];
|
||||
venue_image_list: {
|
||||
url: string;
|
||||
}[];
|
||||
venue_description: string;
|
||||
game_type: string;
|
||||
type: string;
|
||||
}
|
||||
Reference in New Issue
Block a user