mirror of
https://github.com/dromara/RuoYi-Vue-Plus.git
synced 2025-09-24 07:19:46 +08:00
发布 2.3.0
This commit is contained in:
53
ruoyi-ui/src/api/demo/test.js
Normal file
53
ruoyi-ui/src/api/demo/test.js
Normal file
@ -0,0 +1,53 @@
|
||||
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
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user