110 lines
2.1 KiB
JavaScript
110 lines
2.1 KiB
JavaScript
import request from '@/utils/request'
|
|
|
|
export function getDomainPoolList(params) {
|
|
return request({
|
|
url: '/backend/domain/pool/index',
|
|
method: 'get',
|
|
params
|
|
})
|
|
}
|
|
|
|
export function getEnabledDomains() {
|
|
return request({
|
|
url: '/backend/domain/pool/getEnabledDomains',
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
export function createDomainPool(data) {
|
|
return request({
|
|
url: '/backend/domain/pool/create',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function updateDomainPool(data) {
|
|
return request({
|
|
url: '/backend/domain/pool/update',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function deleteDomainPool(id) {
|
|
return request({
|
|
url: `/backend/domain/pool/delete/${id}`,
|
|
method: 'delete'
|
|
})
|
|
}
|
|
|
|
export function toggleDomainPoolStatus(id) {
|
|
return request({
|
|
url: '/backend/domain/pool/toggleStatus',
|
|
method: 'post',
|
|
data: { id }
|
|
})
|
|
}
|
|
|
|
export function getTenantDomainList(params) {
|
|
return request({
|
|
url: '/backend/domain/tenant/index',
|
|
method: 'get',
|
|
params
|
|
})
|
|
}
|
|
|
|
export function getMyDomains(params) {
|
|
return request({
|
|
url: '/backend/domain/tenant/myDomains',
|
|
method: 'get',
|
|
params
|
|
})
|
|
}
|
|
|
|
export function applyTenantDomain(data) {
|
|
return request({
|
|
url: '/backend/domain/tenant/apply',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function bindCustomDomain(data) {
|
|
return request({
|
|
url: '/backend/domain/tenant/bindCustom',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function checkCustomDomainDns(id) {
|
|
return request({
|
|
url: '/backend/domain/tenant/checkCustomDns',
|
|
method: 'post',
|
|
data: { id }
|
|
})
|
|
}
|
|
|
|
export function getCustomDomainGuide() {
|
|
return request({
|
|
url: '/backend/domain/tenant/customDomainGuide',
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
export function toggleTenantDomainStatus(id) {
|
|
return request({
|
|
url: '/backend/domain/tenant/toggleStatus',
|
|
method: 'post',
|
|
data: { id }
|
|
})
|
|
}
|
|
|
|
export function deleteTenantDomain(id) {
|
|
return request({
|
|
url: `/backend/domain/tenant/delete/${id}`,
|
|
method: 'delete'
|
|
})
|
|
}
|