From 64d2e84c2cac938c4f9c933d0517a3733120a414 Mon Sep 17 00:00:00 2001 From: guzeng Date: Thu, 14 Oct 2021 13:39:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=94=B6=E8=97=8F=E5=95=86?= =?UTF-8?q?=E5=93=81=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- product.pb.go | 4 ++++ product.proto | 1 + 2 files changed, 5 insertions(+) diff --git a/product.pb.go b/product.pb.go index cff1fdc..e0cc55f 100644 --- a/product.pb.go +++ b/product.pb.go @@ -206,6 +206,7 @@ type ProductService interface { GetActivity(in *Request, out *Response) error GetAllActivity(in *Request, out *Response) error GetWarmingActivity(in *Request, out *Response) error + FavoriteProduct(in *Request, out *Response) error } // AcceptProductServiceClient accepts connections on the listener and serves requests @@ -298,6 +299,9 @@ func (c *ProductServiceClient) GetAllActivity(in *Request, out *Response) error func (c *ProductServiceClient) GetWarmingActivity(in *Request, out *Response) error { return c.Call("ProductService.GetWarmingActivity", in, out) } +func (c *ProductServiceClient) FavoriteProduct(in *Request, out *Response) error { + return c.Call("ProductService.FavoriteProduct", 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 9f7f508..a50453f 100644 --- a/product.proto +++ b/product.proto @@ -45,4 +45,5 @@ service ProductService { rpc GetActivity(Request) returns (Response); //查询商品所在的活动 rpc GetAllActivity(Request) returns (Response); //查询商品所在的所有活动 rpc GetWarmingActivity(Request) returns (Response); //查询商品所在的预热中活动 + rpc FavoriteProduct(Request) returns(Response);//收藏商品 } \ No newline at end of file