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