Files
nginx-ui/model/dns_ddns.go
Jacky 9225c96250 feat/dns (#1466)
* feat: dns management

* refactor(dns): streamline domain management functions and enhance validation

* feat(dns): add value suggestions for DNS record input with autocomplete functionality

* fix(dns): handle edge case in record listing pagination

* fix(dns): update credential property name for consistency and add cleanup on component unmount

* feat(dns): implement DDNS management #1194, #1140
2025-12-08 17:45:30 +08:00

22 lines
739 B
Go

package model
import "time"
// DDNSRecordTarget represents a DNS record to be managed by DDNS.
type DDNSRecordTarget struct {
ID string `json:"id"`
Name string `json:"name"`
Type string `json:"type"`
}
// DDNSConfig stores per-domain DDNS configuration and runtime status.
type DDNSConfig struct {
Enabled bool `json:"enabled"`
IntervalSeconds int `json:"interval_seconds"`
Targets []DDNSRecordTarget `json:"targets"`
LastIPv4 string `json:"last_ipv4,omitempty"`
LastIPv6 string `json:"last_ipv6,omitempty"`
LastRunAt *time.Time `json:"last_run_at,omitempty"`
LastError string `json:"last_error,omitempty"`
}