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