mirror of
https://github.com/veops/cmdb.git
synced 2025-09-05 21:07:01 +08:00
40 lines
857 B
JavaScript
40 lines
857 B
JavaScript
import { axios } from '@/utils/request'
|
|
|
|
export function getAuthData(data_type) {
|
|
return axios({
|
|
url: `/common-setting/v1/auth_config/${data_type}`,
|
|
method: 'get',
|
|
})
|
|
}
|
|
|
|
export function postAuthData(data_type, data) {
|
|
return axios({
|
|
url: `/common-setting/v1/auth_config/${data_type}`,
|
|
method: 'post',
|
|
data,
|
|
})
|
|
}
|
|
|
|
export function putAuthData(data_type, id, data) {
|
|
return axios({
|
|
url: `/common-setting/v1/auth_config/${data_type}/${id}`,
|
|
method: 'put',
|
|
data,
|
|
})
|
|
}
|
|
|
|
export function getAuthDataEnable() {
|
|
return axios({
|
|
url: `/common-setting/v1/auth_config/enable_list`,
|
|
method: 'get',
|
|
})
|
|
}
|
|
|
|
export function testLDAP(data) {
|
|
return axios({
|
|
url: `/common-setting/v1/auth_config/LDAP/test`,
|
|
method: 'post',
|
|
data,
|
|
})
|
|
}
|