|
|
@ -1,6 +1,6 @@ |
|
|
|
import { AxiosError } from 'axios'; |
|
|
|
import { AxiosError } from 'axios'; |
|
|
|
import { createAsyncAction, ActionType } from 'typesafe-actions'; |
|
|
|
import { createAsyncAction, ActionType } from 'typesafe-actions'; |
|
|
|
import { IStcsRs, IStcsSearchRq, IStcsSearchRs } from '../models'; |
|
|
|
import { IStcsRq, IStcsRs, IStcsSearchRq, IStcsSearchRs } from '../models'; |
|
|
|
|
|
|
|
|
|
|
|
// 비행 통계 (비행시간, 비행거리, 비행횟수)
|
|
|
|
// 비행 통계 (비행시간, 비행거리, 비행횟수)
|
|
|
|
const FLIGHT_STCS_REQUEST = 'statistics/flight/FLIGHT_STCS_REQUEST'; |
|
|
|
const FLIGHT_STCS_REQUEST = 'statistics/flight/FLIGHT_STCS_REQUEST'; |
|
|
@ -43,7 +43,7 @@ export const FLIGHT_STCS = createAsyncAction( |
|
|
|
FLIGHT_STCS_REQUEST, |
|
|
|
FLIGHT_STCS_REQUEST, |
|
|
|
FLIGHT_STCS_SUCCESS, |
|
|
|
FLIGHT_STCS_SUCCESS, |
|
|
|
FLIGHT_STCS_FAILURE |
|
|
|
FLIGHT_STCS_FAILURE |
|
|
|
)<null, IStcsRs[], AxiosError>(); |
|
|
|
)<IStcsRq, IStcsRs[], AxiosError>(); |
|
|
|
|
|
|
|
|
|
|
|
export const FLIGHT_STCS_SEARCH = createAsyncAction( |
|
|
|
export const FLIGHT_STCS_SEARCH = createAsyncAction( |
|
|
|
FLIGHT_STCS_SEARCH_REQUEST, |
|
|
|
FLIGHT_STCS_SEARCH_REQUEST, |
|
|
@ -55,7 +55,7 @@ export const ABNORMAL_STCS = createAsyncAction( |
|
|
|
ABNORMAL_STCS_REQUEST, |
|
|
|
ABNORMAL_STCS_REQUEST, |
|
|
|
ABNORMAL_STCS_SUCCESS, |
|
|
|
ABNORMAL_STCS_SUCCESS, |
|
|
|
ABNORMAL_STCS_FAILURE |
|
|
|
ABNORMAL_STCS_FAILURE |
|
|
|
)<null, IStcsRs[], AxiosError>(); |
|
|
|
)<IStcsRq, IStcsRs[], AxiosError>(); |
|
|
|
|
|
|
|
|
|
|
|
export const ABNORMAL_STCS_SEARCH = createAsyncAction( |
|
|
|
export const ABNORMAL_STCS_SEARCH = createAsyncAction( |
|
|
|
ABNORMAL_STCS_SEARCH_REQUEST, |
|
|
|
ABNORMAL_STCS_SEARCH_REQUEST, |
|
|
@ -67,7 +67,7 @@ export const RESULT_STCS = createAsyncAction( |
|
|
|
RESULT_STCS_REQUEST, |
|
|
|
RESULT_STCS_REQUEST, |
|
|
|
RESULT_STCS_SUCCESS, |
|
|
|
RESULT_STCS_SUCCESS, |
|
|
|
RESULT_STCS_FAILURE |
|
|
|
RESULT_STCS_FAILURE |
|
|
|
)<null, IStcsRs[], AxiosError>(); |
|
|
|
)<IStcsRq, IStcsRs[], AxiosError>(); |
|
|
|
|
|
|
|
|
|
|
|
export const RESULT_STCS_SEARCH = createAsyncAction( |
|
|
|
export const RESULT_STCS_SEARCH = createAsyncAction( |
|
|
|
RESULT_STCS_SEARCH_REQUEST, |
|
|
|
RESULT_STCS_SEARCH_REQUEST, |
|
|
|