新增端口映射页面对接

This commit is contained in:
aoshiguchen
2022-09-01 17:32:35 +08:00
parent 767066f70a
commit 8b5a1801e1
2 changed files with 71 additions and 17 deletions
@@ -7,3 +7,40 @@ export function fetchList(query) {
params: query
})
}
export function createUserPortMapping(data) {
return request({
url: '/port-mapping/create',
method: 'post',
data
})
}
export function updateUserPortMapping(data) {
return request({
url: '/port-mapping/update',
method: 'post',
data
})
}
export function deletePortMapping(id) {
return request({
url: '/port-mapping/delete',
method: 'post',
params: {
id: id
}
})
}
export function updateEnableStatus(id, enable) {
return request({
url: '/port-mapping/update/enable-status',
method: 'post',
data: {
id: id,
enable: enable
}
})
}