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;
|
|
|
|
}
|
|
|
|
|
2022-11-16 10:31:35 +08:00
|
|
|
export interface WebSiteDTO extends CommonModel {
|
|
|
|
primaryDomain: string;
|
|
|
|
type: string;
|
|
|
|
alias: string;
|
|
|
|
remark: string;
|
|
|
|
domains: WebSite.Domain[];
|
|
|
|
appType: string;
|
|
|
|
appInstallId?: number;
|
|
|
|
webSiteGroupId: number;
|
|
|
|
otherDomains: string;
|
|
|
|
appinstall?: NewAppInstall;
|
|
|
|
}
|
|
|
|
|
2022-11-02 15:19:14 +08:00
|
|
|
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[];
|
|
|
|
}
|
2022-11-10 17:44:38 +08:00
|
|
|
|
|
|
|
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 {
|
2022-11-17 17:39:33 +08:00
|
|
|
primaryDomain: string;
|
2022-11-11 17:41:39 +08:00
|
|
|
privateKey: string;
|
|
|
|
pem: string;
|
2022-11-17 17:39:33 +08:00
|
|
|
otherDomains: string;
|
2022-11-11 17:41:39 +08:00
|
|
|
certURL: string;
|
|
|
|
type: string;
|
|
|
|
issuerName: string;
|
|
|
|
expireDate: string;
|
|
|
|
startDate: string;
|
|
|
|
}
|
|
|
|
|
2022-11-16 10:31:35 +08:00
|
|
|
export interface SSLCreate {
|
2022-11-17 17:39:33 +08:00
|
|
|
primaryDomain: string;
|
|
|
|
otherDomains: string;
|
2022-11-16 10:31:35 +08:00
|
|
|
provider: string;
|
|
|
|
acmeAccountId: number;
|
|
|
|
dnsAccountId: number;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface SSLApply {
|
|
|
|
websiteId: number;
|
|
|
|
SSLId: number;
|
|
|
|
}
|
|
|
|
|
2022-11-17 17:39:33 +08:00
|
|
|
export interface SSLRenew {
|
|
|
|
SSLId: number;
|
|
|
|
}
|
|
|
|
|
2022-11-11 17:41:39 +08:00
|
|
|
export interface AcmeAccount extends CommonModel {
|
|
|
|
email: string;
|
|
|
|
url: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface AcmeAccountCreate {
|
|
|
|
email: string;
|
|
|
|
}
|
2022-11-16 10:31:35 +08:00
|
|
|
|
|
|
|
export interface DNSResolveReq {
|
|
|
|
domains: string[];
|
|
|
|
acmeAccountId: number;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface DNSResolve {
|
|
|
|
key: string;
|
|
|
|
value: string;
|
|
|
|
type: string;
|
|
|
|
}
|
2022-10-28 17:04:57 +08:00
|
|
|
}
|