|
@ -11,6 +11,7 @@ It is generated from these files: |
|
|
It has these top-level messages: |
|
|
It has these top-level messages: |
|
|
GetRequest |
|
|
GetRequest |
|
|
GetUuidRequest |
|
|
GetUuidRequest |
|
|
|
|
|
GetSkuRequest |
|
|
GetResponse |
|
|
GetResponse |
|
|
Request |
|
|
Request |
|
|
Response |
|
|
Response |
|
@ -112,6 +113,54 @@ func (m *GetUuidRequest) GetField() string { |
|
|
return "" |
|
|
return "" |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
type GetSkuRequest struct { |
|
|
|
|
|
SiteId *string `protobuf:"bytes,1,opt,name=site_id" json:"site_id,omitempty"` |
|
|
|
|
|
Dbname *string `protobuf:"bytes,2,opt,name=dbname" json:"dbname,omitempty"` |
|
|
|
|
|
ProductUuid *string `protobuf:"bytes,3,opt,name=product_uuid" json:"product_uuid,omitempty"` |
|
|
|
|
|
SkuId *string `protobuf:"bytes,4,opt,name=sku_id" json:"sku_id,omitempty"` |
|
|
|
|
|
Field *string `protobuf:"bytes,5,opt,name=field" json:"field,omitempty"` |
|
|
|
|
|
XXX_unrecognized []byte `json:"-"` |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func (m *GetSkuRequest) Reset() { *m = GetSkuRequest{} } |
|
|
|
|
|
func (m *GetSkuRequest) String() string { return proto.CompactTextString(m) } |
|
|
|
|
|
func (*GetSkuRequest) ProtoMessage() {} |
|
|
|
|
|
|
|
|
|
|
|
func (m *GetSkuRequest) GetSiteId() string { |
|
|
|
|
|
if m != nil && m.SiteId != nil { |
|
|
|
|
|
return *m.SiteId |
|
|
|
|
|
} |
|
|
|
|
|
return "" |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func (m *GetSkuRequest) GetDbname() string { |
|
|
|
|
|
if m != nil && m.Dbname != nil { |
|
|
|
|
|
return *m.Dbname |
|
|
|
|
|
} |
|
|
|
|
|
return "" |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func (m *GetSkuRequest) GetProductUuid() string { |
|
|
|
|
|
if m != nil && m.ProductUuid != nil { |
|
|
|
|
|
return *m.ProductUuid |
|
|
|
|
|
} |
|
|
|
|
|
return "" |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func (m *GetSkuRequest) GetSkuId() string { |
|
|
|
|
|
if m != nil && m.SkuId != nil { |
|
|
|
|
|
return *m.SkuId |
|
|
|
|
|
} |
|
|
|
|
|
return "" |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func (m *GetSkuRequest) GetField() string { |
|
|
|
|
|
if m != nil && m.Field != nil { |
|
|
|
|
|
return *m.Field |
|
|
|
|
|
} |
|
|
|
|
|
return "" |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// 使用key查询响应结构
|
|
|
// 使用key查询响应结构
|
|
|
type GetResponse struct { |
|
|
type GetResponse struct { |
|
|
Value []byte `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"` |
|
|
Value []byte `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"` |
|
@ -210,6 +259,8 @@ type ProductService interface { |
|
|
GetProductActivity(in *Request, out *Response) error |
|
|
GetProductActivity(in *Request, out *Response) error |
|
|
GetProductAllActivity(in *Request, out *Response) error |
|
|
GetProductAllActivity(in *Request, out *Response) error |
|
|
GetProductWarmingActivity(in *Request, out *Response) error |
|
|
GetProductWarmingActivity(in *Request, out *Response) error |
|
|
|
|
|
GetSkuInfo(in *GetSkuRequest, out *GetResponse) error |
|
|
|
|
|
GetSkuList(in *GetSkuRequest, out *GetResponse) error |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// AcceptProductServiceClient accepts connections on the listener and serves requests
|
|
|
// AcceptProductServiceClient accepts connections on the listener and serves requests
|
|
@ -314,6 +365,12 @@ func (c *ProductServiceClient) GetProductAllActivity(in *Request, out *Response) |
|
|
func (c *ProductServiceClient) GetProductWarmingActivity(in *Request, out *Response) error { |
|
|
func (c *ProductServiceClient) GetProductWarmingActivity(in *Request, out *Response) error { |
|
|
return c.Call("ProductService.GetProductWarmingActivity", in, out) |
|
|
return c.Call("ProductService.GetProductWarmingActivity", in, out) |
|
|
} |
|
|
} |
|
|
|
|
|
func (c *ProductServiceClient) GetSkuInfo(in *GetSkuRequest, out *GetResponse) error { |
|
|
|
|
|
return c.Call("ProductService.GetSkuInfo", in, out) |
|
|
|
|
|
} |
|
|
|
|
|
func (c *ProductServiceClient) GetSkuList(in *GetSkuRequest, out *GetResponse) error { |
|
|
|
|
|
return c.Call("ProductService.GetSkuList", in, out) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// DialProductService connects to an ProductService at the specified network address.
|
|
|
// DialProductService connects to an ProductService at the specified network address.
|
|
|
func DialProductService(network, addr string) (*ProductServiceClient, *rpc.Client, error) { |
|
|
func DialProductService(network, addr string) (*ProductServiceClient, *rpc.Client, error) { |
|
|