mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2026-05-06 22:12:23 +08:00
* 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
22 lines
739 B
Go
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"`
|
|
}
|