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服务商。