更新域名状态
This commit is contained in:
@@ -23,7 +23,7 @@ export function updateEnableStatus(id, enable) {
|
||||
id: id,
|
||||
enable: enable
|
||||
}
|
||||
}).use
|
||||
})
|
||||
}
|
||||
|
||||
export function createDomain(data) {
|
||||
@@ -41,3 +41,24 @@ export function updateDomain(data) {
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function deleteDomain(id) {
|
||||
return request({
|
||||
url: '/domain/delete',
|
||||
method: 'post',
|
||||
params: {
|
||||
id: id
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
export function updateDefaultStatus(id, isDefault) {
|
||||
return request({
|
||||
url: '/domain/update/default-status',
|
||||
method: 'post',
|
||||
data: {
|
||||
id: id,
|
||||
isDefault: isDefault
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user