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