mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-03-23 11:31:51 +00:00
fix struct tags (#7)
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
package model
|
||||
|
||||
type DDNSForm struct {
|
||||
MaxRetries uint64 `json:"max_retries,omitempty"`
|
||||
EnableIPv4 bool `json:"enable_ipv4,omitempty"`
|
||||
EnableIPv6 bool `json:"enable_ipv6,omitempty"`
|
||||
Name string `json:"name,omitempty"`
|
||||
MaxRetries uint64 `json:"max_retries,omitempty" default:"3"`
|
||||
EnableIPv4 bool `json:"enable_ipv4,omitempty" validate:"optional"`
|
||||
EnableIPv6 bool `json:"enable_ipv6,omitempty" validate:"optional"`
|
||||
Name string `json:"name,omitempty" minLength:"1"`
|
||||
Provider string `json:"provider,omitempty"`
|
||||
Domains []string `json:"domains,omitempty"`
|
||||
AccessID string `json:"access_id,omitempty"`
|
||||
AccessSecret string `json:"access_secret,omitempty"`
|
||||
WebhookURL string `json:"webhook_url,omitempty"`
|
||||
WebhookMethod uint8 `json:"webhook_method,omitempty"`
|
||||
WebhookRequestType uint8 `json:"webhook_request_type,omitempty"`
|
||||
WebhookRequestBody string `json:"webhook_request_body,omitempty"`
|
||||
WebhookHeaders string `json:"webhook_headers,omitempty"`
|
||||
AccessID string `json:"access_id,omitempty" validate:"optional"`
|
||||
AccessSecret string `json:"access_secret,omitempty" validate:"optional"`
|
||||
WebhookURL string `json:"webhook_url,omitempty" validate:"optional"`
|
||||
WebhookMethod uint8 `json:"webhook_method,omitempty" validate:"optional" default:"1"`
|
||||
WebhookRequestType uint8 `json:"webhook_request_type,omitempty" validate:"optional" default:"1"`
|
||||
WebhookRequestBody string `json:"webhook_request_body,omitempty" validate:"optional"`
|
||||
WebhookHeaders string `json:"webhook_headers,omitempty" validate:"optional"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user