import request from '/@/utils/request';
|
enum Api {
|
AddTestStudent = '/api/testStudent/add',
|
DeleteTestStudent = '/api/testStudent/delete',
|
UpdateTestStudent = '/api/testStudent/update',
|
PageTestStudent = '/api/testStudent/page',
|
ListTestStudent = '/api/testStudent/list',
|
DetailTestStudent = '/api/testStudent/detail',
|
ImportExcelTestStudent = '/api/testStudent/importExcel',
|
DownloadExcelTemplateTestStudent = '/api/testStudent/downloadExcelTemplate',
|
}
|
|
// 增加测试学生表
|
export const addTestStudent = (params?: any) =>
|
request({
|
url: Api.AddTestStudent,
|
method: 'post',
|
data: params
|
});
|
|
// 删除测试学生表
|
export const deleteTestStudent = (params?: any) =>
|
request({
|
url: Api.DeleteTestStudent,
|
method: 'post',
|
data: params
|
});
|
|
// 编辑测试学生表
|
export const updateTestStudent = (params?: any) =>
|
request({
|
url: Api.UpdateTestStudent,
|
method: 'post',
|
data: params
|
});
|
|
// 导入测试学生表
|
export const importExcelTestStudent = (params?: any) =>
|
request({
|
url: Api.ImportExcelTestStudent,
|
method: 'post',
|
data: params
|
});
|
|
// 下载导入测试学生表模板
|
export const downloadExcelTemplateTestStudent = (params?: any) =>
|
request({
|
url: Api.DownloadExcelTemplateTestStudent,
|
method: 'get',
|
data: params,
|
responseType: 'blob'
|
});
|
|
|
// 分页查询测试学生表
|
export const pageTestStudent = (params?: any) =>
|
request({
|
url: Api.PageTestStudent,
|
method: 'post',
|
data: params
|
});
|
|
// 不分页查询测试学生表
|
export const listTestStudent = (params?: any) =>
|
request({
|
url: Api.ListTestStudent,
|
method: 'get',
|
data: params
|
});
|
|
// 详情测试学生表
|
export const detailTestStudent = (id: any) =>
|
request({
|
url: Api.DetailTestStudent,
|
method: 'get',
|
data: { id }
|
});
|