Browse Source

增加收藏商品方法

master v0.5.6
guzeng 3 years ago
parent
commit
64d2e84c2c
2 changed files with 5 additions and 0 deletions
  1. +4
    -0
      product.pb.go
  2. +1
    -0
      product.proto

+ 4
- 0
product.pb.go View File

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


+ 1
- 0
product.proto View File

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

Loading…
Cancel
Save