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

const warningInfoList = [
  {
    id: 1002,
    warningIcon: '',
    disasterType: '台风蓝色预警',
    disasterLevel: 'IV级/一般',
    warningTime: '2024-03-20 10:00:00',
    warningContent: '上海市气象台7月12日1时发布台风黄色预警：预计未来24小时内将有特大暴雨',
    activeStatus: 1,
    publishTime: '2024-03-20 10:00:00',
    pushStatus: 0,
  },
  {
    id: 1003,
    warningIcon: '',
    disasterType: '暴雨橙色预警',
    disasterLevel: 'III级/较重',
    warningTime: '2024-03-20 10:00:00',
    warningContent: '上海市气象台7月12日1时发布暴雨橙色预警：预计未来24小时内将有特大暴雨',
    activeStatus: 2,
    publishTime: '2024-03-20 10:00:00',
    pushStatus: 1,
  },
];

const defenseNoticeList = [
  {
    id: 1001,
    noticeTitle: '上飞院关于加强防汛防台工作的通知',
    disasterType: '暴雨',
    disasterLevel: '黄色',
    publishTime: '2024-03-20 10:00:00',
    activeStatus: 0,
    pushStatus: 0,
  },
  {
    id: 1002,
    noticeTitle: '上飞院关于加强防汛防台工作的通知',
    disasterType: '台风',
    disasterLevel: '黄色',
    publishTime: '2024-03-20 10:00:00',
    activeStatus: 1,
    pushStatus: 1,
  },
  {
    id: 1003,
    noticeTitle: '上飞院关于加强防汛防台工作的通知',
    disasterType: '高温',
    disasterLevel: '红色',
    publishTime: '2024-03-20 10:00:00',
    activeStatus: 2,
    pushStatus: 1,
  },
];

export default [
  {
    url: '/eye_api_bak/api/admin/warning/getWarningInfoList',
    timeout: 1000,
    method: 'get',
    response: () => {
      return resultSuccess(warningInfoList);
    },
  },
  {
    url: '/eye_api_bak/api/admin/warning/getDefenseNoticeList',
    timeout: 1000,
    method: 'get',
    response: () => {
      return resultSuccess(defenseNoticeList);
    },
  },
];
