Browse Source

增加商品的所有活动

master v0.5.8
guzeng 2 years ago
parent
commit
490d89b078
2 changed files with 15 additions and 0 deletions
  1. +12
    -0
      product.pb.go
  2. +3
    -0
      product.proto

+ 12
- 0
product.pb.go View File

@ -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) {


+ 3
- 0
product.proto View File

@ -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); //
}

Loading…
Cancel
Save