1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-21 17:29:17 +08:00

73 lines
1.5 KiB
Go
Raw Normal View History

2022-11-02 15:19:14 +08:00
import { CommonModel, ReqPage } from '.';
2022-10-28 17:04:57 +08:00
export namespace WebSite {
2022-11-02 15:19:14 +08:00
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;
}
2022-10-28 17:04:57 +08:00
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;
2022-11-02 15:19:14 +08:00
default: boolean;
2022-10-28 17:04:57 +08:00
}
2022-11-02 18:18:20 +08:00
export interface GroupOp {
name: string;
id?: number;
}
2022-11-03 17:06:48 +08:00
export interface Domain {
2022-11-03 18:02:07 +08:00
websiteId: number;
2022-11-03 17:06:48 +08:00
port: number;
id: number;
2022-11-03 18:02:07 +08:00
domain: string;
}
export interface DomainCreate {
websiteId: number;
port: number;
domain: string;
2022-11-03 17:06:48 +08:00
}
2022-11-07 16:19:05 +08:00
export interface NginxConfigReq {
websiteId: number;
scope: string;
params?: any;
}
2022-10-28 17:04:57 +08:00
}