mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 07:57:21 +08:00
feat(证书): 支持西部数码
This commit is contained in:
@@ -3,14 +3,14 @@ package request
|
||||
import "github.com/tnb-labs/panel/pkg/acme"
|
||||
|
||||
type CertDNSCreate struct {
|
||||
Type acme.DnsType `form:"type" json:"type" validate:"required|in:aliyun,tencent,huawei,cloudflare,godaddy,gcore,porkbun,namecheap,namesilo,namecom,cloudns,duckdns,hetzner,linode,vercel"`
|
||||
Type acme.DnsType `form:"type" json:"type" validate:"required|in:aliyun,tencent,huawei,westcn,cloudflare,godaddy,gcore,porkbun,namecheap,namesilo,namecom,cloudns,duckdns,hetzner,linode,vercel"`
|
||||
Name string `form:"name" json:"name" validate:"required"`
|
||||
Data acme.DNSParam `form:"data" json:"data" validate:"required"`
|
||||
}
|
||||
|
||||
type CertDNSUpdate struct {
|
||||
ID uint `form:"id" json:"id" validate:"required|exists:cert_dns,id"`
|
||||
Type acme.DnsType `form:"type" json:"type" validate:"required|in:aliyun,tencent,huawei,cloudflare,godaddy,gcore,porkbun,namecheap,namesilo,namecom,cloudns,duckdns,hetzner,linode,vercel"`
|
||||
Type acme.DnsType `form:"type" json:"type" validate:"required|in:aliyun,tencent,huawei,westcn,cloudflare,godaddy,gcore,porkbun,namecheap,namesilo,namecom,cloudns,duckdns,hetzner,linode,vercel"`
|
||||
Name string `form:"name" json:"name" validate:"required"`
|
||||
Data acme.DNSParam `form:"data" json:"data" validate:"required"`
|
||||
}
|
||||
|
||||
@@ -65,6 +65,10 @@ func (s *CertService) DNSProviders(w http.ResponseWriter, r *http.Request) {
|
||||
Label: "华为云",
|
||||
Value: string(acme.Huawei),
|
||||
},
|
||||
{
|
||||
Label: "西部数码",
|
||||
Value: string(acme.Westcn),
|
||||
},
|
||||
{
|
||||
Label: "CloudFlare",
|
||||
Value: string(acme.CloudFlare),
|
||||
|
||||
Reference in New Issue
Block a user