nezha/model/ddns_api.go

18 lines
1.0 KiB
Go
Raw Normal View History

2024-10-25 20:16:57 -04:00
package model
type DDNSForm struct {
2024-11-16 07:57:03 -05:00
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"`
2024-10-25 20:16:57 -04:00
Provider string `json:"provider,omitempty"`
Domains []string `json:"domains,omitempty"`
2024-11-16 07:57:03 -05:00
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"`
2024-10-25 20:16:57 -04:00
}