接口节点
This commit is contained in:
@@ -42,3 +42,47 @@ export function delApi(id) {
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// 查询接口节点列表
|
||||
export function listGroup(query) {
|
||||
return request({
|
||||
url: '/test/group/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询接口节点详细
|
||||
export function getGroup(id) {
|
||||
return request({
|
||||
url: '/test/group/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增接口节点
|
||||
export function addGroup(data) {
|
||||
return request({
|
||||
url: '/test/group',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改接口节点
|
||||
export function updateGroup(data) {
|
||||
return request({
|
||||
url: '/test/group',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除接口节点
|
||||
export function delGroup(id) {
|
||||
return request({
|
||||
url: '/test/group/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user