From 48d12221fe88863201633e76dba76c47d59ce84c Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Mon, 19 Sep 2022 17:00:39 +0800 Subject: [PATCH] =?UTF-8?q?DNS=E9=9B=86=E7=BE=A4=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E6=97=B6=E5=8C=BA=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/db/models/ns_cluster_model.go | 2 ++ internal/db/models/ns_node_dao.go | 1 + 2 files changed, 3 insertions(+) diff --git a/internal/db/models/ns_cluster_model.go b/internal/db/models/ns_cluster_model.go index c0be987f..dd2bd8f1 100644 --- a/internal/db/models/ns_cluster_model.go +++ b/internal/db/models/ns_cluster_model.go @@ -18,6 +18,7 @@ type NSCluster struct { DdosProtection dbs.JSON `field:"ddosProtection"` // DDoS防护设置 Hosts dbs.JSON `field:"hosts"` // DNS主机地址 AutoRemoteStart bool `field:"autoRemoteStart"` // 自动远程启动 + TimeZone string `field:"timeZone"` // 时区 } type NSClusterOperator struct { @@ -35,6 +36,7 @@ type NSClusterOperator struct { DdosProtection any // DDoS防护设置 Hosts any // DNS主机地址 AutoRemoteStart any // 自动远程启动 + TimeZone any // 时区 } func NewNSClusterOperator() *NSClusterOperator { diff --git a/internal/db/models/ns_node_dao.go b/internal/db/models/ns_node_dao.go index d9a80b06..4c079340 100644 --- a/internal/db/models/ns_node_dao.go +++ b/internal/db/models/ns_node_dao.go @@ -403,6 +403,7 @@ func (this *NSNodeDAO) ComposeNodeConfig(tx *dbs.Tx, nodeId int64) (*dnsconfigs. NodeId: node.UniqueId, Secret: node.Secret, ClusterId: int64(node.ClusterId), + TimeZone: cluster.TimeZone, } // 访问日志