47 lines
787 B
JavaScript
47 lines
787 B
JavaScript
import request from '@/utils/request'
|
|
|
|
export function fetchList(query) {
|
|
return request({
|
|
url: '/port-mapping/page',
|
|
method: 'get',
|
|
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
|
|
}
|
|
})
|
|
}
|