From cc4c94cb0cd25065b5226f2f1db38ddf44afcf3a Mon Sep 17 00:00:00 2001 From: guzeng Date: Wed, 6 Oct 2021 17:54:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=9F=A5=E8=AF=A2=E6=89=80?= =?UTF-8?q?=E6=9C=89=E6=B4=BB=E5=8A=A8=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- product.pb.go | 8 ++++++++ product.proto | 2 ++ 2 files changed, 10 insertions(+) diff --git a/product.pb.go b/product.pb.go index 4431d3e..cff1fdc 100644 --- a/product.pb.go +++ b/product.pb.go @@ -204,6 +204,8 @@ type ProductService interface { GetSku(in *GetRequest, out *GetResponse) error GetSkuByUuid(in *GetUuidRequest, out *GetResponse) error GetActivity(in *Request, out *Response) error + GetAllActivity(in *Request, out *Response) error + GetWarmingActivity(in *Request, out *Response) error } // AcceptProductServiceClient accepts connections on the listener and serves requests @@ -290,6 +292,12 @@ func (c *ProductServiceClient) GetSkuByUuid(in *GetUuidRequest, out *GetResponse func (c *ProductServiceClient) GetActivity(in *Request, out *Response) error { return c.Call("ProductService.GetActivity", in, out) } +func (c *ProductServiceClient) GetAllActivity(in *Request, out *Response) error { + return c.Call("ProductService.GetAllActivity", in, out) +} +func (c *ProductServiceClient) GetWarmingActivity(in *Request, out *Response) error { + return c.Call("ProductService.GetWarmingActivity", in, out) +} // DialProductService connects to an ProductService at the specified network address. func DialProductService(network, addr string) (*ProductServiceClient, *rpc.Client, error) { diff --git a/product.proto b/product.proto index d010609..9f7f508 100644 --- a/product.proto +++ b/product.proto @@ -43,4 +43,6 @@ service ProductService { rpc GetSku (GetRequest) returns (GetResponse); // 使用id查询 rpc GetSkuByUuid (GetUuidRequest) returns (GetResponse); // 使用uuid查询 rpc GetActivity(Request) returns (Response); //查询商品所在的活动 + rpc GetAllActivity(Request) returns (Response); //查询商品所在的所有活动 + rpc GetWarmingActivity(Request) returns (Response); //查询商品所在的预热中活动 } \ No newline at end of file