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

const requestList = {
	// 查核列表
	getCheckList: {
		method: 'GET',
		url: 'plan/depList'
	},
	// 分配单位查核人员
	batchDistribute: {
		method: 'POST',
		url: 'plan/batchDistribute'
	},
	//计划列表
	planList: {
		method: 'GET',
		url: 'plan/list'
	},
	//批量撤销
	batchCancelCheckDistribution: {
		method: 'POST',
		url: 'plan/initDistribution'
	}
};

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