2023-03-01 17:43:28 +08:00
|
|
|
import { CommonModel, ReqPage } 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;
|
2023-03-06 17:18:13 +08:00
|
|
|
groupID: number;
|
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;
|
2023-03-06 17:18:13 +08:00
|
|
|
groupID: number;
|
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;
|
|
|
|
}
|
2023-03-01 17:43:28 +08:00
|
|
|
export interface GroupChange {
|
|
|
|
id: number;
|
2023-03-06 17:18:13 +08:00
|
|
|
groupID: number;
|
2023-03-01 17:43:28 +08:00
|
|
|
}
|
2022-08-30 18:49:07 +08:00
|
|
|
export interface ReqSearch {
|
2022-08-29 18:44:35 +08:00
|
|
|
info?: string;
|
|
|
|
}
|
2023-03-01 17:43:28 +08:00
|
|
|
export interface SearchWithPage extends ReqPage {
|
2023-03-06 17:18:13 +08:00
|
|
|
groupID: number;
|
2023-03-01 17:43:28 +08:00
|
|
|
info?: string;
|
|
|
|
}
|
2023-03-27 19:02:36 +08:00
|
|
|
|
|
|
|
export interface RuleSearch extends ReqPage {
|
|
|
|
info: string;
|
|
|
|
type: string;
|
|
|
|
}
|
|
|
|
export interface RuleInfo extends ReqPage {
|
|
|
|
family: string;
|
|
|
|
address: string;
|
|
|
|
port: string;
|
|
|
|
protocol: string;
|
|
|
|
strategy: string;
|
|
|
|
}
|
|
|
|
export interface RulePort {
|
|
|
|
operation: string;
|
|
|
|
address: string;
|
|
|
|
port: string;
|
|
|
|
source: string;
|
|
|
|
protocol: string;
|
|
|
|
strategy: string;
|
|
|
|
}
|
|
|
|
export interface RuleIP {
|
|
|
|
operation: string;
|
|
|
|
address: string;
|
|
|
|
strategy: string;
|
|
|
|
}
|
2022-08-18 18:54:21 +08:00
|
|
|
}
|