|
|
@ -11,6 +11,8 @@ It is generated from these files: |
|
|
|
It has these top-level messages: |
|
|
|
CreateRequest |
|
|
|
CreateResponse |
|
|
|
Request |
|
|
|
Response |
|
|
|
*/ |
|
|
|
package orderrpc |
|
|
|
|
|
|
@ -94,6 +96,72 @@ func (m *CreateResponse) GetSign() string { |
|
|
|
return "" |
|
|
|
} |
|
|
|
|
|
|
|
// 请求结构
|
|
|
|
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() { |
|
|
|
} |
|
|
|
|
|
|
@ -101,6 +169,8 @@ type OrderService interface { |
|
|
|
Create(in *CreateRequest, out *CreateResponse) error |
|
|
|
CreateByCart(in *CreateRequest, out *CreateResponse) error |
|
|
|
Cancel(in *CreateRequest, out *CreateResponse) error |
|
|
|
AutoReceive(in *Request, out *Response) error |
|
|
|
VerifyByBooking(in *Request, out *Response) error |
|
|
|
} |
|
|
|
|
|
|
|
// AcceptOrderServiceClient accepts connections on the listener and serves requests
|
|
|
@ -181,6 +251,12 @@ func (c *OrderServiceClient) CreateByCart(in *CreateRequest, out *CreateResponse |
|
|
|
func (c *OrderServiceClient) Cancel(in *CreateRequest, out *CreateResponse) error { |
|
|
|
return c.Call("OrderService.Cancel", in, out) |
|
|
|
} |
|
|
|
func (c *OrderServiceClient) AutoReceive(in *Request, out *Response) error { |
|
|
|
return c.Call("OrderService.AutoReceive", in, out) |
|
|
|
} |
|
|
|
func (c *OrderServiceClient) VerifyByBooking(in *Request, out *Response) error { |
|
|
|
return c.Call("OrderService.VerifyByBooking", in, out) |
|
|
|
} |
|
|
|
|
|
|
|
// DialOrderService connects to an OrderService at the specified network address.
|
|
|
|
func DialOrderService(network, addr string) (*OrderServiceClient, *rpc.Client, error) { |
|
|
|