添加主机身份页面.

This commit is contained in:
lijiahang
2023-09-21 13:50:42 +08:00
parent fbc40116f0
commit b13cbd8cca
39 changed files with 444 additions and 649 deletions

View File

@@ -9,7 +9,6 @@ export interface HostKeyCreateRequest {
publicKey?: string;
privateKey?: string;
password?: string;
useNewPassword?: boolean;
}
/**
@@ -17,6 +16,7 @@ export interface HostKeyCreateRequest {
*/
export interface HostKeyUpdateRequest extends HostKeyCreateRequest {
id: number;
useNewPassword?: boolean;
}
/**
@@ -66,8 +66,8 @@ export function getHostKey(id: number) {
/**
* 查询主机秘钥
*/
export function getHostKeyListAll() {
return axios.post<Array<HostKeyQueryResponse>>('/asset/host-key/list-all');
export function getHostKeyList() {
return axios.post<Array<HostKeyQueryResponse>>('/asset/host-key/list');
}
/**