From 146b477c176721a02db14e28539803bdf1e6a8a6 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Sat, 9 Oct 2021 16:13:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=99=BA=E8=83=BDDNS=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=E7=9A=84TTL=E5=A2=9E=E5=8A=A0=E5=A4=9A=E4=B8=AA=E7=A7=92?= =?UTF-8?q?=E3=80=81=E5=88=86=E9=92=9F=E3=80=81=E5=B9=B4=E7=AD=89=E6=A1=A3?= =?UTF-8?q?=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/dnsconfigs/record_ttls.go | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/pkg/dnsconfigs/record_ttls.go b/pkg/dnsconfigs/record_ttls.go index 52c92de..4ca4c8a 100644 --- a/pkg/dnsconfigs/record_ttls.go +++ b/pkg/dnsconfigs/record_ttls.go @@ -9,6 +9,30 @@ type RecordTTL struct { func FindAllRecordTTL() []*RecordTTL { return []*RecordTTL{ + { + Name: "5秒", + Value: 5, + }, + { + Name: "10秒", + Value: 10, + }, + { + Name: "30秒", + Value: 30, + }, + { + Name: "1分钟", + Value: 60, + }, + { + Name: "3分钟", + Value: 3 * 60, + }, + { + Name: "5分钟", + Value: 5 * 60, + }, { Name: "10分钟", Value: 10 * 60, @@ -29,5 +53,13 @@ func FindAllRecordTTL() []*RecordTTL { Name: "1天", Value: 86400, }, + { + Name: "30天", + Value: 30 * 86400, + }, + { + Name: "一年", + Value: 365 * 86400, + }, } }