Browse Source

增加查询所有活动方法

master v0.5.2
guzeng 3 years ago
parent
commit
cc4c94cb0c
2 changed files with 10 additions and 0 deletions
  1. +8
    -0
      product.pb.go
  2. +2
    -0
      product.proto

+ 8
- 0
product.pb.go View File

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


+ 2
- 0
product.proto View File

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

Loading…
Cancel
Save