import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/api/webapp/api/admin/t_exam/` + url, ...arg)
export default {
	pageList: (data) => request('page', data, 'get'),
	edit: (query) => request('edit', query, 'post'),
	select: (id) => request(`detail?id=${id}`, '', 'get'),
	deleteExam: (data) => request('delete', data, 'post'),
	createExam: (query) => request('add', query, 'post'),
	// 统计分析
	statistic: (data) => request('stasticByPaperId', data, 'get')
}
