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

127 lines
2.6 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;
2022-11-11 17:41:39 +08:00
appInstallId?: number;
webSiteGroupId: number;
2022-11-02 15:19:14 +08:00
otherDomains: string;
appinstall?: NewAppInstall;
}
export interface NewAppInstall {
name: string;
2022-11-11 17:41:39 +08:00
appDetailId: number;
2022-11-02 15:19:14 +08:00
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;
2022-11-11 17:41:39 +08:00
appInstallId: number;
webSiteGroupId: number;
2022-10-28 17:04:57 +08:00
otherDomains: string;
}
2022-11-08 17:21:13 +08:00
export interface WebSiteUpdateReq {
id: number;
primaryDomain: string;
remark: string;
2022-11-11 17:41:39 +08:00
webSiteGroupId: number;
2022-11-08 17:21:13 +08:00
}
2022-10-28 17:04:57 +08:00
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 {
2022-11-08 15:42:31 +08:00
operate: string;
2022-11-07 16:19:05 +08:00
websiteId: number;
scope: string;
params?: any;
}
2022-11-08 15:42:31 +08:00
export interface NginxParam {
name: string;
secondKey: string;
isRepeatKey: string;
params: string[];
}
export interface DnsAccount extends CommonModel {
name: string;
type: string;
authorization: Object;
}
export interface DnsAccountCreate {
name: string;
type: string;
authorization: Object;
}
export interface DnsAccountUpdate {
id: number;
name: string;
type: string;
authorization: Object;
}
2022-11-11 17:41:39 +08:00
export interface SSL extends CommonModel {
privateKey: string;
pem: string;
domain: string;
certURL: string;
type: string;
issuerName: string;
expireDate: string;
startDate: string;
}
export interface AcmeAccount extends CommonModel {
email: string;
url: string;
}
export interface AcmeAccountCreate {
email: string;
}
2022-10-28 17:04:57 +08:00
}