安全组相关代码优化.

This commit is contained in:
aoshiguchen
2023-12-10 20:43:23 +08:00
parent 306cd66034
commit bb96caca64
6 changed files with 34 additions and 27 deletions
+2 -18
View File
@@ -31,11 +31,11 @@ export function createGroup(data) {
})
}
export function updateGroup(data) {
export function updateGroup(query) {
return request({
url: `/security/group/update`,
method: 'post',
data
params: query
})
}
@@ -58,22 +58,6 @@ export function updateGroupEnableStatus(id, enable) {
})
}
export function enableGroup(query) {
return request({
url: '/security/group/enable',
method: 'post',
params: query
})
}
export function disableGroup(query) {
return request({
url: '/security/group/disable',
method: 'post',
params: query
})
}
export function fetchRuleList(query) {
return request({
url: '/security/rule/list',