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