From e67b8a9602f075732f63662750ca9fe99729f5e1 Mon Sep 17 00:00:00 2001 From: guzeng Date: Mon, 7 Jun 2021 17:47:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=9F=A5=E8=AF=A2=E7=BC=93?= =?UTF-8?q?=E5=AD=98=E7=9A=84=E6=89=80=E6=9C=89=E7=AB=99=E7=82=B9=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- site.pb.go | 4 ++++ site.proto | 1 + 2 files changed, 5 insertions(+) diff --git a/site.pb.go b/site.pb.go index 24f2d3f..ef94004 100644 --- a/site.pb.go +++ b/site.pb.go @@ -100,6 +100,7 @@ func init() { type SiteService interface { GetConfig(in *ConfigRequest, out *ConfigResponse) error GetBalanceType(in *ConfigRequest, out *ConfigResponse) error + GetAllSite(in *ConfigRequest, out *ConfigResponse) error } // AcceptSiteServiceClient accepts connections on the listener and serves requests @@ -177,6 +178,9 @@ func (c *SiteServiceClient) GetConfig(in *ConfigRequest, out *ConfigResponse) er func (c *SiteServiceClient) GetBalanceType(in *ConfigRequest, out *ConfigResponse) error { return c.Call("SiteService.GetBalanceType", in, out) } +func (c *SiteServiceClient) GetAllSite(in *ConfigRequest, out *ConfigResponse) error { + return c.Call("SiteService.GetAllSite", in, out) +} // DialSiteService connects to an SiteService at the specified network address. func DialSiteService(network, addr string) (*SiteServiceClient, *rpc.Client, error) { diff --git a/site.proto b/site.proto index d08695d..ce43e24 100644 --- a/site.proto +++ b/site.proto @@ -20,4 +20,5 @@ message ConfigResponse { service SiteService { rpc getConfig (ConfigRequest) returns (ConfigResponse); // 查询配置信息 rpc getBalanceType (ConfigRequest) returns (ConfigResponse); // 查询账户类型信息 + rpc getAllSite(ConfigRequest) returns (ConfigResponse);//缓存的所有站点 } \ No newline at end of file