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

const taskManagement = [
  {
    id: 1002,
    taskName: '专项检查任务2025',
    selfCheckUnit: '运维部',
    taskType: 0,
    shouldCompleteTime: '2024-03-25 15:30:00',
    activeStatus: 1,
    taskStage: 1,
    isOverdue: 0,
  },
  {
    id: 1003,
    taskName: '季度检查任务2026',
    selfCheckUnit: '技术部',
    taskType: 2,
    shouldCompleteTime: '2024-06-30 18:00:00',
    activeStatus: 0,
    taskStage: 1,
    isOverdue: 0,
  },
  {
    id: 1005,
    taskName: '日常检查任务20295123458111111',
    selfCheckUnit: '质量部',
    taskType: 2,
    shouldCompleteTime: '2024-03-21 14:00:00',
    activeStatus: 2,
    taskStage: 4,
    isOverdue: 1,
  },
];
const taskExecution = [
  {
    id: 1002,
    taskName: '专项检查任务2025',
    selfCheckUnit: '运维部',
    taskType: 0,
    shouldCompleteTime: '2024-03-25 15:30:00',
    taskStage: 3,
    isOverdue: 0,
    checkUser: [],
  },
  {
    id: 1003,
    taskName: '季度检查任务2026',
    selfCheckUnit: '技术部',
    taskType: 1,
    shouldCompleteTime: '2024-06-30 18:00:00',
    taskStage: 2,
    isOverdue: 0,
    checkUser: [],
  },
  {
    id: 1004,
    taskName: '年度检查任务2027',
    selfCheckUnit: '工程部',
    taskType: 2,
    shouldCompleteTime: '2024-12-31 23:59:59',
    taskStage: 2,
    isOverdue: 0,
    checkUser: [],
  },
  {
    id: 1005,
    taskName: '日常检查任务20295123458111111',
    selfCheckUnit: '质量部',
    taskType: 0,
    shouldCompleteTime: '2024-03-21 14:00:00',
    taskStage: 4,
    isOverdue: 1,
    checkUser: [],
  },
];

export default [
  {
    url: '/safety_api/api/admin/task/getTaskManagementList',
    timeout: 1000,
    method: 'get',
    response: () => {
      return resultSuccess(taskManagement);
    },
  },
  {
    url: '/safety_api/api/admin/task/getTaskExecutionList',
    timeout: 1000,
    method: 'get',
    response: () => {
      return resultSuccess(taskExecution);
    },
  }
];
