You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
package dto
|
|
|
|
|
|
|
|
import "github.com/1Panel-dev/1Panel/backend/app/model"
|
|
|
|
|
|
|
|
type WebsiteSSLDTO struct {
|
|
|
|
model.WebSiteSSL
|
|
|
|
}
|
|
|
|
|
|
|
|
type SSLProvider string
|
|
|
|
|
|
|
|
const (
|
|
|
|
DNSAccount = "dnsAccount"
|
|
|
|
DnsManual = "dnsManual"
|
|
|
|
Http = "http"
|
|
|
|
)
|
|
|
|
|
|
|
|
type WebsiteSSLCreate struct {
|
|
|
|
PrimaryDomain string `json:"primaryDomain" validate:"required"`
|
|
|
|
OtherDomains string `json:"otherDomains"`
|
|
|
|
Provider SSLProvider `json:"provider" validate:"required"`
|
|
|
|
AcmeAccountID uint `json:"acmeAccountId" validate:"required"`
|
|
|
|
DnsAccountID uint `json:"dnsAccountId"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type WebsiteSSLApply struct {
|
|
|
|
WebsiteID uint `json:"websiteId" validate:"required"`
|
|
|
|
SSLID uint `json:"SSLId" validate:"required"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type WebsiteDNSReq struct {
|
|
|
|
Domains []string `json:"domains" validate:"required"`
|
|
|
|
AcmeAccountID uint `json:"acmeAccountId" validate:"required"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type WebsiteDNSRes struct {
|
|
|
|
Key string `json:"resolve"`
|
|
|
|
Value string `json:"value"`
|
|
|
|
Type string `json:"type"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type WebsiteSSLRenew struct {
|
|
|
|
SSLID uint `json:"SSLId" validate:"required"`
|
|
|
|
}
|