hhjk00
10 months ago
5 changed files with 149 additions and 36 deletions
@ -1,46 +1,41 @@ |
|||||||
export interface IStatisticsState { |
export interface IStatisticsState { |
||||||
flight: Flight; |
flight: IStcsRs[]; |
||||||
flightSearch: FlightSearch; |
flightSearch: IStcsSearchRs; |
||||||
|
result: IStcsRs[]; |
||||||
|
resultSearch: IStcsSearchRs; |
||||||
} |
} |
||||||
|
|
||||||
export interface Flight { |
export interface IStcsRs { |
||||||
count: number; |
name: string; |
||||||
data: { |
year: string; |
||||||
name: string; |
month: string; |
||||||
year: string; |
day: string; |
||||||
month: string; |
|
||||||
day: string; |
|
||||||
}[]; |
|
||||||
} |
} |
||||||
|
|
||||||
export interface FlightSearch { |
export interface IStcsSearchRs { |
||||||
count: number; |
graphData: IStcsSearchData[]; |
||||||
data: { |
topData: IStcsSearchData[]; |
||||||
graphData: SearchData[]; |
|
||||||
topData: SearchData[]; |
|
||||||
}; |
|
||||||
} |
} |
||||||
export interface SearchData { |
export interface IStcsSearchData { |
||||||
name: string; |
name: string; |
||||||
value: number; |
value: number; |
||||||
} |
} |
||||||
|
|
||||||
export interface FlightSearchRq { |
export interface IStcsSearchRq { |
||||||
cate: string; |
cate: string; |
||||||
date: string; |
date: string; |
||||||
type: string; |
type: string; |
||||||
} |
} |
||||||
|
|
||||||
export const initialState = { |
export const initialState = { |
||||||
flight: { |
flight: [], |
||||||
count: 0, |
|
||||||
data: [] |
|
||||||
}, |
|
||||||
flightSearch: { |
flightSearch: { |
||||||
count: 0, |
graphData: [], |
||||||
data: { |
topData: [] |
||||||
graphData: [], |
}, |
||||||
topData: [] |
result: [], |
||||||
} |
resultSearch: { |
||||||
|
graphData: [], |
||||||
|
topData: [] |
||||||
} |
} |
||||||
}; |
}; |
||||||
|
Loading…
Reference in new issue