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

const requestList = {
  // 查核列表
  depList: {
    method: 'GET',
    url: 'plan/depList',
  }, 
	// 计划列表
  planList: {
    method: 'GET',
    url: 'plan/list',
  }, 
	// 查核任务列表2
	checkTaskDetailList: {
	  method: 'GET',
	  url: 'checkTask/checkTaskDetailList',
	}, 
	// 查核项明细
	checkTaskDetail: {
	  method: 'GET',
	  url: 'checkTask/checkTaskDetail',
	}, 
	// 获取查核任务正确答案（小灯泡）
	getArticle: {
	  method: 'GET',
	  url: 'syscheckpointreviewrules/getCheckPointReviewRules',
	}, 
};

export const commServer = (key, data) => {
  let obj = requestList[key];
  return creatRequest(obj, data);
}