import { creatRequest } from '../../utils/request.js';

const requestList = {
	  //情境详情
	  situationDetail: {
		method: 'GET',
		url: 'situation'
	  },
	//情境作废
	situationDelete:{
		method:'DELETE',
		url: 'situation'
	},
	//查核计划列表
	planList:{
		method:'GET',
		url: 'plan/list'
	},
	//提前开始计划内查核
	planAdvance:{
		method:'GET',
		url: 'plan/advance'
	},
	//创建计划外查核
	createCheck:{
		method:'GET',
		url: 'plan/unplannedCheck'
	},
	//自查督查获取小计划列表
	getPlanDetailList:{
		method:'GET',
		url: 'inspector/checkList'
	},
};
export const commServer = ({ key, data }) => {
  let obj = requestList[key];
  return creatRequest(obj, data);
}