mirror of
https://github.com/dromara/RuoYi-Vue-Plus.git
synced 2025-09-24 07:19:46 +08:00
53 lines
848 B
JavaScript
53 lines
848 B
JavaScript
import request from '@/utils/request'
|
|
|
|
// 查询测试列表
|
|
export function listTest(query) {
|
|
return request({
|
|
url: '/demo/test/list',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 查询测试详细
|
|
export function getTest(id) {
|
|
return request({
|
|
url: '/demo/test/' + id,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 新增测试
|
|
export function addTest(data) {
|
|
return request({
|
|
url: '/demo/test',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 修改测试
|
|
export function updateTest(data) {
|
|
return request({
|
|
url: '/demo/test',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 删除测试
|
|
export function delTest(id) {
|
|
return request({
|
|
url: '/demo/test/' + id,
|
|
method: 'delete'
|
|
})
|
|
}
|
|
|
|
// 导出测试
|
|
export function exportTest(query) {
|
|
return request({
|
|
url: '/demo/test/export',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
} |