Captain
2022-03-19 136cbb1e3bc056c88cfa21fca612d3ab72b4d119
types/axios.d.ts
@@ -23,8 +23,15 @@
  ignoreCancelToken?: boolean;
  // Whether to send token in header
  withToken?: boolean;
  // 请求重试机制
  retryRequest?: RetryRequest;
}
export interface RetryRequest {
  isOpenRetry: boolean;
  count: number;
  waitTime: number;
}
export interface Result<T = any> {
  code: number;
  type: 'success' | 'error' | 'warning';