1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-22 01:39:18 +08:00
2022-11-17 21:20:33 +08:00

81 lines
1.7 KiB
Go

import { CommonModel, ReqPage } from '.';
export namespace WebSite {
export interface WebSite extends CommonModel {
primaryDomain: string;
type: string;
alias: string;
remark: string;
domains: string[];
appType: string;
appInstallID?: number;
webSiteGroupID: number;
otherDomains: string;
appinstall?: NewAppInstall;
}
export interface NewAppInstall {
name: string;
appDetailID: number;
params: any;
}
export interface WebSiteSearch extends ReqPage {
name: string;
}
export interface WebSiteDel {
id: number;
deleteApp: boolean;
deleteBackup: boolean;
}
export interface WebSiteCreateReq {
primaryDomain: string;
type: string;
alias: string;
remark: string;
appType: string;
appInstallID: number;
webSiteGroupID: number;
otherDomains: string;
}
export interface Group extends CommonModel {
name: string;
default: boolean;
}
export interface GroupOp {
name: string;
id?: number;
}
export interface Domain {
websiteId: number;
port: number;
id: number;
domain: string;
}
export interface DomainCreate {
websiteId: number;
port: number;
domain: string;
}
export interface NginxConfigReq {
operate: string;
websiteId: number;
scope: string;
params?: any;
}
export interface NginxParam {
name: string;
secondKey: string;
isRepeatKey: string;
params: string[];
}
}