import { resultSuccess } from '../_util';

const disasterList = [
  {
    id: 1001,
    disasterType: '台风',
    disasterLevel: 'IV级/一般',
    startTime: '2024-03-20 10:00:00',
    endTime: '2024-03-20 10:00:00',
    disasterMaterial: [
      {
        id: 1001,
        name: '台风灾害处置材料',
        type: 'word',
        link: '',
      },
    ],
    shouldCompleteTime: '2024-03-20 10:00:00',
    activeStatus: 1,
    taskStage: 0,
  },
  {
    id: 1002,
    disasterType: '台风',
    disasterLevel: 'IV级/一般',
    startTime: '2024-03-20 10:00:00',
    endTime: '2024-03-20 10:00:00',
    disasterMaterial: [
      {
        id: 1002,
        name: '台风灾害处置材料',
        type: 'ppt',
        link: '',
      },
      {
        id: 1003,
        name: '台讯前期安全检查方案',
        type: 'excel',
        link: '',
      },
    ],
    shouldCompleteTime: '2024-03-20 10:00:00',
    activeStatus: 0,
    taskStage: 0,
  },
  {
    id: 1003,
    disasterType: '台风',
    disasterLevel: 'IV级/一般',
    startTime: '2024-03-20 10:00:00',
    endTime: '2024-03-20 10:00:00',
    disasterMaterial: [
      {
        id: 1004,
        name: '台风灾害处置材料',
        type: 'pdf',
        link: '',
      },
    ],
    shouldCompleteTime: '2024-03-20 10:00:00',
    activeStatus: 2,
    taskStage: 1,
  },
];

export default [
  {
    url: '/eye_api_bak/api/admin/disaster/getDisasterList',
    timeout: 1000,
    method: 'get',
    response: () => {
      return resultSuccess(disasterList);
    },
  },
];
