|
@ -12,6 +12,8 @@ It has these top-level messages: |
|
|
GetRequest |
|
|
GetRequest |
|
|
GetUuidRequest |
|
|
GetUuidRequest |
|
|
GetResponse |
|
|
GetResponse |
|
|
|
|
|
Request |
|
|
|
|
|
Response |
|
|
*/ |
|
|
*/ |
|
|
package productrpc |
|
|
package productrpc |
|
|
|
|
|
|
|
@ -127,6 +129,72 @@ func (m *GetResponse) GetValue() []byte { |
|
|
return nil |
|
|
return nil |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 配置信息请求结构
|
|
|
|
|
|
type Request struct { |
|
|
|
|
|
Data *string `protobuf:"bytes,1,opt,name=data" json:"data,omitempty"` |
|
|
|
|
|
Time *string `protobuf:"bytes,2,opt,name=time" json:"time,omitempty"` |
|
|
|
|
|
Sign *string `protobuf:"bytes,3,opt,name=sign" json:"sign,omitempty"` |
|
|
|
|
|
XXX_unrecognized []byte `json:"-"` |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func (m *Request) Reset() { *m = Request{} } |
|
|
|
|
|
func (m *Request) String() string { return proto.CompactTextString(m) } |
|
|
|
|
|
func (*Request) ProtoMessage() {} |
|
|
|
|
|
|
|
|
|
|
|
func (m *Request) GetData() string { |
|
|
|
|
|
if m != nil && m.Data != nil { |
|
|
|
|
|
return *m.Data |
|
|
|
|
|
} |
|
|
|
|
|
return "" |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func (m *Request) GetTime() string { |
|
|
|
|
|
if m != nil && m.Time != nil { |
|
|
|
|
|
return *m.Time |
|
|
|
|
|
} |
|
|
|
|
|
return "" |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func (m *Request) GetSign() string { |
|
|
|
|
|
if m != nil && m.Sign != nil { |
|
|
|
|
|
return *m.Sign |
|
|
|
|
|
} |
|
|
|
|
|
return "" |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 配置信息响应结构
|
|
|
|
|
|
type Response struct { |
|
|
|
|
|
Data *string `protobuf:"bytes,1,opt,name=data" json:"data,omitempty"` |
|
|
|
|
|
Time *string `protobuf:"bytes,2,opt,name=time" json:"time,omitempty"` |
|
|
|
|
|
Sign *string `protobuf:"bytes,3,opt,name=sign" json:"sign,omitempty"` |
|
|
|
|
|
XXX_unrecognized []byte `json:"-"` |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func (m *Response) Reset() { *m = Response{} } |
|
|
|
|
|
func (m *Response) String() string { return proto.CompactTextString(m) } |
|
|
|
|
|
func (*Response) ProtoMessage() {} |
|
|
|
|
|
|
|
|
|
|
|
func (m *Response) GetData() string { |
|
|
|
|
|
if m != nil && m.Data != nil { |
|
|
|
|
|
return *m.Data |
|
|
|
|
|
} |
|
|
|
|
|
return "" |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func (m *Response) GetTime() string { |
|
|
|
|
|
if m != nil && m.Time != nil { |
|
|
|
|
|
return *m.Time |
|
|
|
|
|
} |
|
|
|
|
|
return "" |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func (m *Response) GetSign() string { |
|
|
|
|
|
if m != nil && m.Sign != nil { |
|
|
|
|
|
return *m.Sign |
|
|
|
|
|
} |
|
|
|
|
|
return "" |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
func init() { |
|
|
func init() { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -135,6 +203,7 @@ type ProductService interface { |
|
|
GetByUuid(in *GetUuidRequest, out *GetResponse) error |
|
|
GetByUuid(in *GetUuidRequest, out *GetResponse) error |
|
|
GetSku(in *GetRequest, out *GetResponse) error |
|
|
GetSku(in *GetRequest, out *GetResponse) error |
|
|
GetSkuByUuid(in *GetUuidRequest, out *GetResponse) error |
|
|
GetSkuByUuid(in *GetUuidRequest, out *GetResponse) error |
|
|
|
|
|
GetActivity(in *Request, out *Response) error |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// AcceptProductServiceClient accepts connections on the listener and serves requests
|
|
|
// AcceptProductServiceClient accepts connections on the listener and serves requests
|
|
@ -218,6 +287,9 @@ func (c *ProductServiceClient) GetSku(in *GetRequest, out *GetResponse) error { |
|
|
func (c *ProductServiceClient) GetSkuByUuid(in *GetUuidRequest, out *GetResponse) error { |
|
|
func (c *ProductServiceClient) GetSkuByUuid(in *GetUuidRequest, out *GetResponse) error { |
|
|
return c.Call("ProductService.GetSkuByUuid", in, out) |
|
|
return c.Call("ProductService.GetSkuByUuid", in, out) |
|
|
} |
|
|
} |
|
|
|
|
|
func (c *ProductServiceClient) GetActivity(in *Request, out *Response) error { |
|
|
|
|
|
return c.Call("ProductService.GetActivity", 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) { |
|
|