From 09ff5a37a93672c8c64ff313a252ad2076f55ff5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Wed, 25 Aug 2021 18:46:57 +0800 Subject: [PATCH] =?UTF-8?q?DNS=E6=9C=8D=E5=8A=A1=E5=95=86=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/web/actions/default/dns/providers/index.go | 8 +++++++- web/views/@default/dns/providers/index.html | 13 +++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/internal/web/actions/default/dns/providers/index.go b/internal/web/actions/default/dns/providers/index.go index d8a3ec8a..07f08b1d 100644 --- a/internal/web/actions/default/dns/providers/index.go +++ b/internal/web/actions/default/dns/providers/index.go @@ -15,9 +15,14 @@ func (this *IndexAction) Init() { this.Nav("", "", "") } -func (this *IndexAction) RunGet(params struct{}) { +func (this *IndexAction) RunGet(params struct { + Keyword string +}) { + this.Data["keyword"] = params.Keyword + countResp, err := this.RPC().DNSProviderRPC().CountAllEnabledDNSProviders(this.AdminContext(), &pb.CountAllEnabledDNSProvidersRequest{ AdminId: this.AdminId(), + Keyword: params.Keyword, }) if err != nil { this.ErrorPage(err) @@ -29,6 +34,7 @@ func (this *IndexAction) RunGet(params struct{}) { providersResp, err := this.RPC().DNSProviderRPC().ListEnabledDNSProviders(this.AdminContext(), &pb.ListEnabledDNSProvidersRequest{ AdminId: this.AdminId(), + Keyword: params.Keyword, Offset: page.Offset, Size: page.Size, }) diff --git a/web/views/@default/dns/providers/index.html b/web/views/@default/dns/providers/index.html index f13a5755..df2d7cd4 100644 --- a/web/views/@default/dns/providers/index.html +++ b/web/views/@default/dns/providers/index.html @@ -4,6 +4,19 @@ [添加DNS账号信息] +
+ +
+
+
+ +
+
+ +
+
+
+

暂时还没有第三方DNS服务商。