|
@ -9,7 +9,8 @@ It is generated from these files: |
|
|
supplier.proto |
|
|
supplier.proto |
|
|
|
|
|
|
|
|
It has these top-level messages: |
|
|
It has these top-level messages: |
|
|
Params |
|
|
|
|
|
|
|
|
Request |
|
|
|
|
|
Response |
|
|
*/ |
|
|
*/ |
|
|
package supplierrpc |
|
|
package supplierrpc |
|
|
|
|
|
|
|
@ -27,32 +28,66 @@ import protorpc "github.com/chai2010/protorpc" |
|
|
var _ = proto.Marshal |
|
|
var _ = proto.Marshal |
|
|
var _ = math.Inf |
|
|
var _ = math.Inf |
|
|
|
|
|
|
|
|
type Params struct { |
|
|
|
|
|
|
|
|
// 配置信息请求结构
|
|
|
|
|
|
type Request struct { |
|
|
Data *string `protobuf:"bytes,1,opt,name=data" json:"data,omitempty"` |
|
|
Data *string `protobuf:"bytes,1,opt,name=data" json:"data,omitempty"` |
|
|
Time *string `protobuf:"bytes,2,opt,name=time" json:"time,omitempty"` |
|
|
Time *string `protobuf:"bytes,2,opt,name=time" json:"time,omitempty"` |
|
|
Sign *string `protobuf:"bytes,3,opt,name=sign" json:"sign,omitempty"` |
|
|
Sign *string `protobuf:"bytes,3,opt,name=sign" json:"sign,omitempty"` |
|
|
XXX_unrecognized []byte `json:"-"` |
|
|
XXX_unrecognized []byte `json:"-"` |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func (m *Params) Reset() { *m = Params{} } |
|
|
|
|
|
func (m *Params) String() string { return proto.CompactTextString(m) } |
|
|
|
|
|
func (*Params) ProtoMessage() {} |
|
|
|
|
|
|
|
|
func (m *Request) Reset() { *m = Request{} } |
|
|
|
|
|
func (m *Request) String() string { return proto.CompactTextString(m) } |
|
|
|
|
|
func (*Request) ProtoMessage() {} |
|
|
|
|
|
|
|
|
func (m *Params) GetData() string { |
|
|
|
|
|
|
|
|
func (m *Request) GetData() string { |
|
|
if m != nil && m.Data != nil { |
|
|
if m != nil && m.Data != nil { |
|
|
return *m.Data |
|
|
return *m.Data |
|
|
} |
|
|
} |
|
|
return "" |
|
|
return "" |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func (m *Params) GetTime() string { |
|
|
|
|
|
|
|
|
func (m *Request) GetTime() string { |
|
|
if m != nil && m.Time != nil { |
|
|
if m != nil && m.Time != nil { |
|
|
return *m.Time |
|
|
return *m.Time |
|
|
} |
|
|
} |
|
|
return "" |
|
|
return "" |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func (m *Params) GetSign() string { |
|
|
|
|
|
|
|
|
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 { |
|
|
if m != nil && m.Sign != nil { |
|
|
return *m.Sign |
|
|
return *m.Sign |
|
|
} |
|
|
} |
|
@ -63,9 +98,10 @@ func init() { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
type SupplierService interface { |
|
|
type SupplierService interface { |
|
|
Get(in *Params, out *Params) error |
|
|
|
|
|
GetByUuid(in *Params, out *Params) error |
|
|
|
|
|
IsOpen(in *Params, out *Params) error |
|
|
|
|
|
|
|
|
Get(in *Request, out *Response) error |
|
|
|
|
|
GetByUuid(in *Request, out *Response) error |
|
|
|
|
|
IsOpen(in *Request, out *Response) error |
|
|
|
|
|
Get380Star(in *Request, out *Response) error |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// AcceptSupplierServiceClient accepts connections on the listener and serves requests
|
|
|
// AcceptSupplierServiceClient accepts connections on the listener and serves requests
|
|
@ -137,15 +173,18 @@ func NewSupplierServiceClient(conn io.ReadWriteCloser) (*SupplierServiceClient, |
|
|
return &SupplierServiceClient{c}, c |
|
|
return &SupplierServiceClient{c}, c |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func (c *SupplierServiceClient) Get(in *Params, out *Params) error { |
|
|
|
|
|
|
|
|
func (c *SupplierServiceClient) Get(in *Request, out *Response) error { |
|
|
return c.Call("SupplierService.Get", in, out) |
|
|
return c.Call("SupplierService.Get", in, out) |
|
|
} |
|
|
} |
|
|
func (c *SupplierServiceClient) GetByUuid(in *Params, out *Params) error { |
|
|
|
|
|
|
|
|
func (c *SupplierServiceClient) GetByUuid(in *Request, out *Response) error { |
|
|
return c.Call("SupplierService.GetByUuid", in, out) |
|
|
return c.Call("SupplierService.GetByUuid", in, out) |
|
|
} |
|
|
} |
|
|
func (c *SupplierServiceClient) IsOpen(in *Params, out *Params) error { |
|
|
|
|
|
|
|
|
func (c *SupplierServiceClient) IsOpen(in *Request, out *Response) error { |
|
|
return c.Call("SupplierService.IsOpen", in, out) |
|
|
return c.Call("SupplierService.IsOpen", in, out) |
|
|
} |
|
|
} |
|
|
|
|
|
func (c *SupplierServiceClient) Get380Star(in *Request, out *Response) error { |
|
|
|
|
|
return c.Call("SupplierService.Get380Star", in, out) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// DialSupplierService connects to an SupplierService at the specified network address.
|
|
|
// DialSupplierService connects to an SupplierService at the specified network address.
|
|
|
func DialSupplierService(network, addr string) (*SupplierServiceClient, *rpc.Client, error) { |
|
|
func DialSupplierService(network, addr string) (*SupplierServiceClient, *rpc.Client, error) { |
|
|