http server资源增删改查
This commit is contained in:
45
test-ui/src/api/test/http.js
Normal file
45
test-ui/src/api/test/http.js
Normal file
@@ -0,0 +1,45 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询http服务列表
|
||||
export function listHttp() {
|
||||
return request({
|
||||
url: '/test/http/list',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 查询http服务详细
|
||||
export function getHttp(id) {
|
||||
return request({
|
||||
url: '/test/http/detail',
|
||||
method: 'post',
|
||||
data: {id}
|
||||
})
|
||||
}
|
||||
|
||||
// 新增http服务
|
||||
export function addHttp(data) {
|
||||
return request({
|
||||
url: '/test/http/add',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改http服务
|
||||
export function updateHttp(data) {
|
||||
return request({
|
||||
url: '/test/http/edit',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除http服务
|
||||
export function delHttp(id) {
|
||||
return request({
|
||||
url: '/test/http/del',
|
||||
method: 'post',
|
||||
data: {id}
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user