2022-08-30 18:49:07 +08:00
|
|
|
import { CommonModel } from '.';
|
2022-08-18 18:54:21 +08:00
|
|
|
|
|
|
|
export namespace Host {
|
2022-08-30 18:49:07 +08:00
|
|
|
export interface HostTree {
|
2022-08-31 23:16:10 +08:00
|
|
|
id: number;
|
|
|
|
label: string;
|
|
|
|
children: Array<TreeNode>;
|
|
|
|
}
|
|
|
|
export interface TreeNode {
|
|
|
|
id: number;
|
2022-08-30 18:49:07 +08:00
|
|
|
label: string;
|
|
|
|
}
|
2022-08-18 18:54:21 +08:00
|
|
|
export interface Host extends CommonModel {
|
|
|
|
name: string;
|
2022-08-31 23:16:10 +08:00
|
|
|
groupBelong: string;
|
2022-08-18 18:54:21 +08:00
|
|
|
addr: string;
|
|
|
|
port: number;
|
|
|
|
user: string;
|
|
|
|
authMode: string;
|
|
|
|
description: string;
|
|
|
|
}
|
|
|
|
export interface HostOperate {
|
|
|
|
id: number;
|
|
|
|
name: string;
|
2022-08-31 23:16:10 +08:00
|
|
|
groupBelong: string;
|
2022-08-18 18:54:21 +08:00
|
|
|
addr: string;
|
|
|
|
port: number;
|
|
|
|
user: string;
|
|
|
|
authMode: string;
|
|
|
|
privateKey: string;
|
|
|
|
password: string;
|
|
|
|
|
|
|
|
description: string;
|
|
|
|
}
|
2022-09-01 16:52:58 +08:00
|
|
|
export interface HostConnTest {
|
|
|
|
addr: string;
|
|
|
|
port: number;
|
|
|
|
user: string;
|
|
|
|
authMode: string;
|
|
|
|
privateKey: string;
|
|
|
|
password: string;
|
|
|
|
}
|
2022-08-30 18:49:07 +08:00
|
|
|
export interface ReqSearch {
|
2022-08-29 18:44:35 +08:00
|
|
|
info?: string;
|
|
|
|
}
|
2022-08-18 18:54:21 +08:00
|
|
|
}
|