You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.3 KiB
58 lines
1.3 KiB
import axiosSettings from '@/utils/safeSettings/axiosSettings'
|
|
import securityTools from '@/utils/safeComponents'
|
|
import securitySettings from '@/utils/safeSettings/securitySettings'
|
|
|
|
const request = securityTools.request(axiosSettings,securitySettings).request
|
|
const apiHost = "/brick-license/prod-api/authKey/"
|
|
|
|
// 查询授权密钥管理权列表
|
|
export function authKeyList(data) {
|
|
return request({
|
|
url: apiHost + 'list',
|
|
method: 'get',
|
|
params: data
|
|
})
|
|
}
|
|
|
|
// 修改授权密钥管理状态
|
|
export function authKeyChangeStatus(data) {
|
|
return request({
|
|
url: apiHost + 'changeStatus',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 查询授权密钥管理详情
|
|
export function getById(clientId) {
|
|
return request({
|
|
url: apiHost + clientId,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 删除授权密钥管理
|
|
export function authKeyDelete(clientId) {
|
|
return request({
|
|
url: apiHost + 'delete' + `/${clientId}`,
|
|
method: 'post'
|
|
})
|
|
}
|
|
|
|
// 批量删除授权密钥管理
|
|
export function authKeyDeleteBatch(clientIds) {
|
|
return request({
|
|
url: apiHost + 'deleteBatch' + `/${clientIds}`,
|
|
method: 'post'
|
|
})
|
|
}
|
|
|
|
// 保存\修改授权密钥管理
|
|
export function authKeySave(data) {
|
|
return request({
|
|
url: apiHost + 'save',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
|