新增端口映射页面对接
This commit is contained in:
@@ -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
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user