增加域名 DNS 账户绑定与引用保护并修复并发冲突分类

This commit is contained in:
xuans committed 2026-10-04 05:35:11 +08:00
1 parent 1dc72f2b44
commit 7a6da6b2c9
25 files changed
+966 -24

No files matched your search

@@ -0,0 +1,12 @@
package domain
import "time"
// 每次绑定生成新标识;解除后重新绑定也不能让旧页面的写入条件再次成立。
type DNSAccountBinding struct {
ID string `json:"id"`
DomainID string `json:"domain_id"`
ProjectID string `json:"project_id"`
DNSAccountID string `json:"dns_account_id"`
UpdatedAt time.Time `json:"updated_at"`
}
+2
View File
@@ -32,6 +32,8 @@ type Domain struct {
AutoRenew bool `json:"auto_renew"`
ACMEEnvironment string `json:"acme_environment"`
DNSProvider string `json:"dns_provider,omitempty"`
DNSAccountID string `json:"dns_account_id,omitempty"`
DNSBindingID string `json:"dns_binding_id,omitempty"`
ChallengeType string `json:"challenge_type"`
Status string `json:"status"`
ExpiresAt *time.Time `json:"expires_at,omitempty"`