mirror of https://github.com/1Panel-dev/1Panel
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.
50 lines
1.1 KiB
50 lines
1.1 KiB
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"
|
|
Manual = "manual"
|
|
)
|
|
|
|
type WebsiteSSLSearch struct {
|
|
PageInfo
|
|
}
|
|
|
|
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"`
|
|
Enable bool `json:"enable" 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"`
|
|
Domain string `json:"domain"`
|
|
Err string `json:"err"`
|
|
}
|
|
|
|
type WebsiteSSLRenew struct {
|
|
SSLID uint `json:"SSLId" validate:"required"`
|
|
}
|