新增license管理页面对接

This commit is contained in:
aoshiguchen
2022-09-01 17:17:08 +08:00
parent 02867d5b12
commit 767066f70a
16 changed files with 352 additions and 242 deletions
+46
View File
@@ -0,0 +1,46 @@
import request from '@/utils/request'
export function fetchList(query) {
return request({
url: '/license/page',
method: 'get',
params: query
})
}
export function createLicense(data) {
return request({
url: '/license/create',
method: 'post',
data
})
}
export function updateLicense(data) {
return request({
url: '/license/update',
method: 'post',
data
})
}
export function updateEnableStatus(id, enable) {
return request({
url: '/license/update/enable-status',
method: 'post',
data: {
id: id,
enable: enable
}
})
}
export function deleteLicense(id) {
return request({
url: '/license/delete',
method: 'post',
params: {
id: id
}
})
}
@@ -0,0 +1,9 @@
import request from '@/utils/request'
export function fetchList(query) {
return request({
url: '/port-mapping/page',
method: 'get',
params: query
})
}