fix struct tags (#7)

This commit is contained in:
UUBulb
2024-11-16 20:57:03 +08:00
committed by GitHub
parent 8640cbbf42
commit 288e1b75e9
20 changed files with 87 additions and 87 deletions

View File

@@ -22,9 +22,9 @@ type DDNSProfile struct {
Common
EnableIPv4 *bool `json:"enable_ipv4,omitempty"`
EnableIPv6 *bool `json:"enable_ipv6,omitempty"`
MaxRetries uint64 `json:"max_retries,omitempty"`
Name string `json:"name,omitempty"`
Provider string `json:"provider,omitempty"`
MaxRetries uint64 `json:"max_retries"`
Name string `json:"name"`
Provider string `json:"provider"`
AccessID string `json:"access_id,omitempty"`
AccessSecret string `json:"access_secret,omitempty"`
WebhookURL string `json:"webhook_url,omitempty"`
@@ -32,7 +32,7 @@ type DDNSProfile struct {
WebhookRequestType uint8 `json:"webhook_request_type,omitempty"`
WebhookRequestBody string `json:"webhook_request_body,omitempty"`
WebhookHeaders string `json:"webhook_headers,omitempty"`
Domains []string `json:"domains,omitempty" gorm:"-"`
Domains []string `json:"domains" gorm:"-"`
DomainsRaw string `json:"-"`
}