添加主机秘钥列表.
This commit is contained in:
@@ -110,10 +110,3 @@ export function batchDeleteHostIdentity(idList: Array<number>) {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出主机身份
|
||||
*/
|
||||
export function exportHostIdentity(request: HostIdentityQueryRequest) {
|
||||
return axios.post('/asset/host-identity/export', request);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import axios from 'axios';
|
||||
import qs from 'query-string';
|
||||
import { DataGrid, Pagination } from '@/types/global';
|
||||
|
||||
/**
|
||||
@@ -27,7 +26,6 @@ export interface HostKeyQueryRequest extends Pagination {
|
||||
name?: string;
|
||||
publicKey?: string;
|
||||
privateKey?: string;
|
||||
password?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -41,8 +39,6 @@ export interface HostKeyQueryResponse {
|
||||
password?: string;
|
||||
createTime: number;
|
||||
updateTime: number;
|
||||
creator: string;
|
||||
updater: string;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -66,23 +62,11 @@ export function getHostKey(id: number) {
|
||||
return axios.get<HostKeyQueryResponse>('/asset/host-key/get', { params: { id } });
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过 id 批量查询主机秘钥
|
||||
*/
|
||||
export function getHostKeyList(idList: Array<number>) {
|
||||
return axios.get<HostKeyQueryResponse[]>('/asset/host-key/list', {
|
||||
params: { idList },
|
||||
paramsSerializer: params => {
|
||||
return qs.stringify(params, { arrayFormat: 'comma' });
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询主机秘钥
|
||||
*/
|
||||
export function getHostKeyListAll(request: HostKeyQueryRequest) {
|
||||
return axios.post<Array<HostKeyQueryResponse>>('/asset/host-key/list-all', request);
|
||||
export function getHostKeyListAll() {
|
||||
return axios.post<Array<HostKeyQueryResponse>>('/asset/host-key/list-all');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -98,22 +82,3 @@ export function getHostKeyPage(request: HostKeyQueryRequest) {
|
||||
export function deleteHostKey(id: number) {
|
||||
return axios.delete('/asset/host-key/delete', { params: { id } });
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过 id 批量删除主机秘钥
|
||||
*/
|
||||
export function batchDeleteHostKey(idList: Array<number>) {
|
||||
return axios.delete('/asset/host-key/delete-batch', {
|
||||
params: { idList },
|
||||
paramsSerializer: params => {
|
||||
return qs.stringify(params, { arrayFormat: 'comma' });
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出主机秘钥
|
||||
*/
|
||||
export function exportHostKey(request: HostKeyQueryRequest) {
|
||||
return axios.post('/asset/host-key/export', request);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user