import test from "./test.mock.mjs";
import { RequestHttpEnum } from "../../enums/httpEnum.mjs";
const chartDataUrl = "/mock/chartData";
const chartSingleDataUrl = "/mock/chartSingleData";
const numberFloatUrl = "/mock/number/float";
const numberIntUrl = "/mock/number/int";
const textUrl = "/mock/text";
const imageUrl = "/mock/image";
const rankListUrl = "/mock/rankList";
const scrollBoardUrl = "/mock/scrollBoard";
const radarUrl = "/mock/radarData";
const heatMapUrl = "/mock/heatMapData";
const scatterBasicUrl = "/mock/scatterBasic";
const mapUrl = "/mock/map";
const capsuleUrl = "/mock/capsule";
const wordCloudUrl = "/mock/wordCloud";
const treemapUrl = "/mock/treemap";
const threeEarth01Url = "/mock/threeEarth01Data";
const sankeyUrl = "/mock/sankey";
const graphUrl = "/mock/graphData";
[
  {
    // 正则
    // url: /\/mock\/mockData(|\?\S*)$/,
    url: chartDataUrl,
    method: RequestHttpEnum.GET,
    response: () => test.fetchMockData
  },
  {
    url: chartSingleDataUrl,
    method: RequestHttpEnum.GET,
    response: () => test.fetchMockSingleData
  },
  {
    url: numberFloatUrl,
    method: RequestHttpEnum.GET,
    response: () => test.fetchNumberFloat
  },
  {
    url: numberIntUrl,
    method: RequestHttpEnum.GET,
    response: () => test.fetchNumberInt
  },
  {
    url: textUrl,
    method: RequestHttpEnum.GET,
    response: () => test.fetchText
  },
  {
    url: imageUrl,
    method: RequestHttpEnum.GET,
    response: () => test.fetchImage(Math.round(Math.random() * 10))
  },
  {
    url: rankListUrl,
    method: RequestHttpEnum.GET,
    response: () => test.fetchRankList
  },
  {
    url: scrollBoardUrl,
    method: RequestHttpEnum.GET,
    response: () => test.fetchScrollBoard
  },
  {
    url: radarUrl,
    method: RequestHttpEnum.GET,
    response: () => test.fetchRadar
  },
  {
    url: heatMapUrl,
    method: RequestHttpEnum.GET,
    response: () => test.fetchHeatmap
  },
  {
    url: scatterBasicUrl,
    method: RequestHttpEnum.GET,
    response: () => test.fetchScatterBasic
  },
  {
    url: mapUrl,
    method: RequestHttpEnum.GET,
    response: () => test.fetchMap
  },
  {
    url: capsuleUrl,
    method: RequestHttpEnum.GET,
    response: () => test.fetchCapsule
  },
  {
    url: wordCloudUrl,
    method: RequestHttpEnum.GET,
    response: () => test.fetchWordCloud
  },
  {
    url: treemapUrl,
    method: RequestHttpEnum.GET,
    response: () => test.fetchTreemap
  },
  {
    url: threeEarth01Url,
    method: RequestHttpEnum.GET,
    response: () => test.threeEarth01Data
  },
  {
    url: sankeyUrl,
    method: RequestHttpEnum.GET,
    response: () => test.fetchSankey
  },
  {
    url: graphUrl,
    method: RequestHttpEnum.GET,
    response: () => test.graphData
  }
];
export {
  capsuleUrl,
  chartDataUrl,
  chartSingleDataUrl,
  graphUrl,
  heatMapUrl,
  imageUrl,
  mapUrl,
  numberFloatUrl,
  numberIntUrl,
  radarUrl,
  rankListUrl,
  sankeyUrl,
  scatterBasicUrl,
  scrollBoardUrl,
  textUrl,
  threeEarth01Url,
  treemapUrl,
  wordCloudUrl
};
