axios.d.ts 438 B

12345678910111213141516171819202122232425
  1. /* eslint-disable */
  2. import * as axios from '/@/types/axios';
  3. // 扩展 axios 数据返回类型,可自行扩展
  4. declare module '/@/types/axios' {
  5. export interface AxiosResponse<T = any> {
  6. code: number;
  7. data: T;
  8. message: string;
  9. msg: string;
  10. type?: string;
  11. [key: string]: T;
  12. }
  13. }
  14. /**
  15. * 接口响应类型
  16. */
  17. type Resp = {
  18. code: number;
  19. data: T;
  20. msg: string;
  21. }