scene.ts 1022 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. import axios from './instance'
  2. import { GET_SCENE_LIST } from './constant'
  3. export interface Scene {
  4. id: string
  5. num: string
  6. title: string
  7. cover: string
  8. time: string
  9. }
  10. export type Scenes = Scene[]
  11. export const fetchScenes = async () => {
  12. return [
  13. {
  14. id: '1',
  15. num: 't-cc',
  16. time: '2020-03-02',
  17. cover: 'https://4dkk.4dage.com/head/18819272208/head_1662022947583.png',
  18. title: '田心村'
  19. },
  20. {
  21. id: '2',
  22. num: 't-cc2',
  23. time: '2020-03-02',
  24. cover: 'https://4dkk.4dage.com/head/18819272208/head_1662022947583.png',
  25. title: '田心村'
  26. },
  27. {
  28. id: '3',
  29. num: 't-cc3',
  30. time: '2020-03-02',
  31. cover: 'https://4dkk.4dage.com/head/18819272208/head_1662022947583.png',
  32. title: '田心村'
  33. },
  34. {
  35. id: '4',
  36. num: 't-cc4',
  37. time: '2020-03-02',
  38. cover: 'https://4dkk.4dage.com/head/18819272208/head_1662022947583.png',
  39. title: '田心村'
  40. }
  41. ]
  42. // return axios.get<Scenes>(GET_SCENE_LIST)
  43. }