1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-03-04 04:54:16 +08:00

93 lines
2.1 KiB
Go
Raw Normal View History

import { CommonModel, ReqPage } from '.';
export namespace Host {
export interface HostTree {
2022-08-31 23:16:10 +08:00
id: number;
label: string;
children: Array<TreeNode>;
}
export interface TreeNode {
id: number;
label: string;
}
export interface Host extends CommonModel {
name: string;
groupID: number;
2022-08-31 23:16:10 +08:00
groupBelong: string;
addr: string;
port: number;
user: string;
authMode: string;
description: string;
}
export interface HostOperate {
id: number;
name: string;
groupID: number;
addr: string;
port: number;
user: string;
authMode: string;
privateKey: string;
password: string;
description: string;
}
export interface HostConnTest {
addr: string;
port: number;
user: string;
authMode: string;
privateKey: string;
password: string;
}
export interface GroupChange {
id: number;
groupID: number;
}
export interface ReqSearch {
2022-08-29 18:44:35 +08:00
info?: string;
}
export interface SearchWithPage extends ReqPage {
groupID: number;
info?: string;
}
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;
}
export interface UpdatePortRule {
oldRule: RulePort;
newRule: RulePort;
}
export interface UpdateAddrRule {
oldRule: RuleIP;
newRule: RuleIP;
}
export interface BatchRule {
type: string;
rules: Array<RulePort>;
}
}