From 490d89b078976549d335af8684a61a4dbc107b77 Mon Sep 17 00:00:00 2001 From: guzeng Date: Thu, 14 Oct 2021 15:51:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=95=86=E5=93=81=E7=9A=84?= =?UTF-8?q?=E6=89=80=E6=9C=89=E6=B4=BB=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- product.pb.go | 12 ++++++++++++ product.proto | 3 +++ 2 files changed, 15 insertions(+) diff --git a/product.pb.go b/product.pb.go index e0cc55f..5ffe2c9 100644 --- a/product.pb.go +++ b/product.pb.go @@ -207,6 +207,9 @@ type ProductService interface { GetAllActivity(in *Request, out *Response) error GetWarmingActivity(in *Request, out *Response) error FavoriteProduct(in *Request, out *Response) error + GetProductActivity(in *Request, out *Response) error + GetProductAllActivity(in *Request, out *Response) error + GetProductWarmingActivity(in *Request, out *Response) error } // AcceptProductServiceClient accepts connections on the listener and serves requests @@ -302,6 +305,15 @@ func (c *ProductServiceClient) GetWarmingActivity(in *Request, out *Response) er func (c *ProductServiceClient) FavoriteProduct(in *Request, out *Response) error { return c.Call("ProductService.FavoriteProduct", in, out) } +func (c *ProductServiceClient) GetProductActivity(in *Request, out *Response) error { + return c.Call("ProductService.GetProductActivity", in, out) +} +func (c *ProductServiceClient) GetProductAllActivity(in *Request, out *Response) error { + return c.Call("ProductService.GetProductAllActivity", in, out) +} +func (c *ProductServiceClient) GetProductWarmingActivity(in *Request, out *Response) error { + return c.Call("ProductService.GetProductWarmingActivity", 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 a50453f..92c9e22 100644 --- a/product.proto +++ b/product.proto @@ -46,4 +46,7 @@ service ProductService { rpc GetAllActivity(Request) returns (Response); //查询商品所在的所有活动 rpc GetWarmingActivity(Request) returns (Response); //查询商品所在的预热中活动 rpc FavoriteProduct(Request) returns(Response);//收藏商品 + rpc GetProductActivity(Request) returns (Response); //查询商品所在的活动 + rpc GetProductAllActivity(Request) returns (Response); //查询商品所在的所有活动 + rpc GetProductWarmingActivity(Request) returns (Response); //查询商品所在的预热中活动 } \ No newline at end of file