|
|
@ -1915,6 +1915,109 @@ func (x *OrderTotalResp) GetTotalPrice() float32 {
|
|
|
|
return 0
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 查询订单详情
|
|
|
|
|
|
|
|
type FindOrderReq struct {
|
|
|
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
|
|
|
|
|
OrderNo string `protobuf:"bytes,2,opt,name=orderNo,proto3" json:"orderNo,omitempty"`
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (x *FindOrderReq) Reset() {
|
|
|
|
|
|
|
|
*x = FindOrderReq{}
|
|
|
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
|
|
|
|
mi := &file_trade_proto_msgTypes[24]
|
|
|
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (x *FindOrderReq) String() string {
|
|
|
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (*FindOrderReq) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (x *FindOrderReq) ProtoReflect() protoreflect.Message {
|
|
|
|
|
|
|
|
mi := &file_trade_proto_msgTypes[24]
|
|
|
|
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return ms
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use FindOrderReq.ProtoReflect.Descriptor instead.
|
|
|
|
|
|
|
|
func (*FindOrderReq) Descriptor() ([]byte, []int) {
|
|
|
|
|
|
|
|
return file_trade_proto_rawDescGZIP(), []int{24}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (x *FindOrderReq) GetId() string {
|
|
|
|
|
|
|
|
if x != nil {
|
|
|
|
|
|
|
|
return x.Id
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return ""
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (x *FindOrderReq) GetOrderNo() string {
|
|
|
|
|
|
|
|
if x != nil {
|
|
|
|
|
|
|
|
return x.OrderNo
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return ""
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type FindOrderResp struct {
|
|
|
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TradeOrder *TradeOrder `protobuf:"bytes,1,opt,name=tradeOrder,proto3" json:"tradeOrder,omitempty"`
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (x *FindOrderResp) Reset() {
|
|
|
|
|
|
|
|
*x = FindOrderResp{}
|
|
|
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
|
|
|
|
mi := &file_trade_proto_msgTypes[25]
|
|
|
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (x *FindOrderResp) String() string {
|
|
|
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (*FindOrderResp) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (x *FindOrderResp) ProtoReflect() protoreflect.Message {
|
|
|
|
|
|
|
|
mi := &file_trade_proto_msgTypes[25]
|
|
|
|
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return ms
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use FindOrderResp.ProtoReflect.Descriptor instead.
|
|
|
|
|
|
|
|
func (*FindOrderResp) Descriptor() ([]byte, []int) {
|
|
|
|
|
|
|
|
return file_trade_proto_rawDescGZIP(), []int{25}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (x *FindOrderResp) GetTradeOrder() *TradeOrder {
|
|
|
|
|
|
|
|
if x != nil {
|
|
|
|
|
|
|
|
return x.TradeOrder
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var File_trade_proto protoreflect.FileDescriptor
|
|
|
|
var File_trade_proto protoreflect.FileDescriptor
|
|
|
|
|
|
|
|
|
|
|
|
var file_trade_proto_rawDesc = []byte{
|
|
|
|
var file_trade_proto_rawDesc = []byte{
|
|
|
@ -2174,62 +2277,74 @@ var file_trade_proto_rawDesc = []byte{
|
|
|
|
0x63, 0x61, 0x72, 0x74, 0x49, 0x64, 0x73, 0x22, 0x30, 0x0a, 0x0e, 0x4f, 0x72, 0x64, 0x65, 0x72,
|
|
|
|
0x63, 0x61, 0x72, 0x74, 0x49, 0x64, 0x73, 0x22, 0x30, 0x0a, 0x0e, 0x4f, 0x72, 0x64, 0x65, 0x72,
|
|
|
|
0x54, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1e, 0x0a, 0x0a, 0x74, 0x6f, 0x74,
|
|
|
|
0x54, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1e, 0x0a, 0x0a, 0x74, 0x6f, 0x74,
|
|
|
|
0x61, 0x6c, 0x50, 0x72, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x02, 0x52, 0x0a, 0x74,
|
|
|
|
0x61, 0x6c, 0x50, 0x72, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x02, 0x52, 0x0a, 0x74,
|
|
|
|
0x6f, 0x74, 0x61, 0x6c, 0x50, 0x72, 0x69, 0x63, 0x65, 0x32, 0x55, 0x0a, 0x0d, 0x41, 0x64, 0x64,
|
|
|
|
0x6f, 0x74, 0x61, 0x6c, 0x50, 0x72, 0x69, 0x63, 0x65, 0x22, 0x38, 0x0a, 0x0c, 0x46, 0x69, 0x6e,
|
|
|
|
0x54, 0x72, 0x61, 0x64, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x44, 0x0a, 0x0d, 0x41, 0x64,
|
|
|
|
0x64, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18,
|
|
|
|
0x64, 0x54, 0x72, 0x61, 0x64, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x17, 0x2e, 0x70, 0x72,
|
|
|
|
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x6f, 0x72, 0x64,
|
|
|
|
0x6f, 0x74, 0x6f, 0x2e, 0x41, 0x64, 0x64, 0x54, 0x72, 0x61, 0x64, 0x65, 0x4f, 0x72, 0x64, 0x65,
|
|
|
|
0x65, 0x72, 0x4e, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65,
|
|
|
|
0x72, 0x52, 0x65, 0x71, 0x1a, 0x18, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x41, 0x64, 0x64,
|
|
|
|
0x72, 0x4e, 0x6f, 0x22, 0x42, 0x0a, 0x0d, 0x46, 0x69, 0x6e, 0x64, 0x4f, 0x72, 0x64, 0x65, 0x72,
|
|
|
|
0x54, 0x72, 0x61, 0x64, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00,
|
|
|
|
0x52, 0x65, 0x73, 0x70, 0x12, 0x31, 0x0a, 0x0a, 0x74, 0x72, 0x61, 0x64, 0x65, 0x4f, 0x72, 0x64,
|
|
|
|
0x32, 0x5b, 0x0a, 0x10, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x72, 0x61, 0x64, 0x65, 0x4f,
|
|
|
|
0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
|
|
|
0x72, 0x64, 0x65, 0x72, 0x12, 0x47, 0x0a, 0x10, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x72,
|
|
|
|
0x2e, 0x54, 0x72, 0x61, 0x64, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x0a, 0x74, 0x72, 0x61,
|
|
|
|
0x61, 0x64, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x17, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
|
|
|
0x64, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x32, 0x55, 0x0a, 0x0d, 0x41, 0x64, 0x64, 0x54, 0x72,
|
|
|
|
0x2e, 0x41, 0x64, 0x64, 0x54, 0x72, 0x61, 0x64, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65,
|
|
|
|
0x61, 0x64, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x44, 0x0a, 0x0d, 0x41, 0x64, 0x64, 0x54,
|
|
|
|
0x71, 0x1a, 0x18, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x41, 0x64, 0x64, 0x54, 0x72, 0x61,
|
|
|
|
0x72, 0x61, 0x64, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x17, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
|
|
|
0x64, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x32, 0x49, 0x0a,
|
|
|
|
0x6f, 0x2e, 0x41, 0x64, 0x64, 0x54, 0x72, 0x61, 0x64, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52,
|
|
|
|
0x0a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x61, 0x72, 0x74, 0x12, 0x3b, 0x0a, 0x0a, 0x55,
|
|
|
|
0x65, 0x71, 0x1a, 0x18, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x41, 0x64, 0x64, 0x54, 0x72,
|
|
|
|
0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x61, 0x72, 0x74, 0x12, 0x14, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
|
|
|
0x61, 0x64, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x32, 0x5b,
|
|
|
|
0x6f, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x61, 0x72, 0x74, 0x52, 0x65, 0x71, 0x1a,
|
|
|
|
0x0a, 0x10, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x72, 0x61, 0x64, 0x65, 0x4f, 0x72, 0x64,
|
|
|
|
0x15, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x61,
|
|
|
|
0x65, 0x72, 0x12, 0x47, 0x0a, 0x10, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x72, 0x61, 0x64,
|
|
|
|
0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x32, 0x41, 0x0a, 0x08, 0x46, 0x69, 0x6e, 0x64,
|
|
|
|
0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x17, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x41,
|
|
|
|
0x43, 0x61, 0x72, 0x74, 0x12, 0x35, 0x0a, 0x08, 0x46, 0x69, 0x6e, 0x64, 0x43, 0x61, 0x72, 0x74,
|
|
|
|
0x64, 0x64, 0x54, 0x72, 0x61, 0x64, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a,
|
|
|
|
0x12, 0x12, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x43, 0x61, 0x72,
|
|
|
|
0x18, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x41, 0x64, 0x64, 0x54, 0x72, 0x61, 0x64, 0x65,
|
|
|
|
0x74, 0x52, 0x65, 0x71, 0x1a, 0x13, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x46, 0x69, 0x6e,
|
|
|
|
0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x32, 0x49, 0x0a, 0x0a, 0x55,
|
|
|
|
0x64, 0x43, 0x61, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x32, 0x31, 0x0a, 0x04, 0x50,
|
|
|
|
0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x61, 0x72, 0x74, 0x12, 0x3b, 0x0a, 0x0a, 0x55, 0x70, 0x64,
|
|
|
|
0x61, 0x67, 0x65, 0x12, 0x29, 0x0a, 0x04, 0x50, 0x61, 0x67, 0x65, 0x12, 0x0e, 0x2e, 0x70, 0x72,
|
|
|
|
0x61, 0x74, 0x65, 0x43, 0x61, 0x72, 0x74, 0x12, 0x14, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
|
|
|
|
0x6f, 0x74, 0x6f, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x0f, 0x2e, 0x70, 0x72,
|
|
|
|
0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x61, 0x72, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e,
|
|
|
|
0x6f, 0x74, 0x6f, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x32, 0x5d,
|
|
|
|
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x61, 0x72, 0x74,
|
|
|
|
0x0a, 0x11, 0x53, 0x68, 0x6f, 0x77, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x44, 0x65, 0x74,
|
|
|
|
0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x32, 0x41, 0x0a, 0x08, 0x46, 0x69, 0x6e, 0x64, 0x43, 0x61,
|
|
|
|
0x61, 0x69, 0x6c, 0x12, 0x48, 0x0a, 0x11, 0x53, 0x68, 0x6f, 0x77, 0x50, 0x72, 0x6f, 0x64, 0x75,
|
|
|
|
0x72, 0x74, 0x12, 0x35, 0x0a, 0x08, 0x46, 0x69, 0x6e, 0x64, 0x43, 0x61, 0x72, 0x74, 0x12, 0x12,
|
|
|
|
0x63, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x17, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
|
|
|
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x43, 0x61, 0x72, 0x74, 0x52,
|
|
|
|
0x2e, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65,
|
|
|
|
0x65, 0x71, 0x1a, 0x13, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x43,
|
|
|
|
0x71, 0x1a, 0x18, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63,
|
|
|
|
0x61, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x32, 0x31, 0x0a, 0x04, 0x50, 0x61, 0x67,
|
|
|
|
0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x32, 0x51, 0x0a,
|
|
|
|
0x65, 0x12, 0x29, 0x0a, 0x04, 0x50, 0x61, 0x67, 0x65, 0x12, 0x0e, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
|
|
|
|
|
|
|
0x6f, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x0f, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
|
|
|
|
|
|
|
0x6f, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x32, 0x5d, 0x0a, 0x11,
|
|
|
|
|
|
|
|
0x53, 0x68, 0x6f, 0x77, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69,
|
|
|
|
|
|
|
|
0x6c, 0x12, 0x48, 0x0a, 0x11, 0x53, 0x68, 0x6f, 0x77, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74,
|
|
|
|
|
|
|
|
0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x17, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x50,
|
|
|
|
|
|
|
|
0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x1a,
|
|
|
|
|
|
|
|
0x18, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x44,
|
|
|
|
|
|
|
|
0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x32, 0x51, 0x0a, 0x0e, 0x53,
|
|
|
|
|
|
|
|
0x68, 0x6f, 0x77, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x53, 0x6b, 0x75, 0x12, 0x3f, 0x0a,
|
|
|
|
0x0e, 0x53, 0x68, 0x6f, 0x77, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x53, 0x6b, 0x75, 0x12,
|
|
|
|
0x0e, 0x53, 0x68, 0x6f, 0x77, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x53, 0x6b, 0x75, 0x12,
|
|
|
|
0x3f, 0x0a, 0x0e, 0x53, 0x68, 0x6f, 0x77, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x53, 0x6b,
|
|
|
|
0x14, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x53,
|
|
|
|
0x75, 0x12, 0x14, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63,
|
|
|
|
0x6b, 0x75, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x50, 0x72,
|
|
|
|
0x74, 0x53, 0x6b, 0x75, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
|
|
|
|
0x6f, 0x64, 0x75, 0x63, 0x74, 0x53, 0x6b, 0x75, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x32, 0x52,
|
|
|
|
0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x53, 0x6b, 0x75, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00,
|
|
|
|
0x0a, 0x0d, 0x53, 0x68, 0x6f, 0x77, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x53, 0x6b, 0x75, 0x12,
|
|
|
|
0x32, 0x52, 0x0a, 0x0d, 0x53, 0x68, 0x6f, 0x77, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x53, 0x6b,
|
|
|
|
0x41, 0x0a, 0x0d, 0x53, 0x68, 0x6f, 0x77, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x53, 0x6b, 0x75,
|
|
|
|
0x75, 0x12, 0x41, 0x0a, 0x0d, 0x53, 0x68, 0x6f, 0x77, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x53,
|
|
|
|
0x12, 0x17, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74,
|
|
|
|
0x6b, 0x75, 0x12, 0x17, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x50, 0x72, 0x6f, 0x64, 0x75,
|
|
|
|
0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
|
|
|
0x63, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x70, 0x72,
|
|
|
|
0x6f, 0x2e, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x53, 0x6b, 0x75, 0x52, 0x65, 0x73, 0x70,
|
|
|
|
0x6f, 0x74, 0x6f, 0x2e, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x53, 0x6b, 0x75, 0x52, 0x65,
|
|
|
|
0x22, 0x00, 0x32, 0x43, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x54, 0x6f, 0x6b,
|
|
|
|
0x73, 0x70, 0x22, 0x00, 0x32, 0x43, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x54,
|
|
|
|
0x65, 0x6e, 0x12, 0x33, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x54, 0x6f, 0x6b,
|
|
|
|
0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x33, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x54,
|
|
|
|
0x65, 0x6e, 0x12, 0x0f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e,
|
|
|
|
0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x0f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x54, 0x6f, 0x6b,
|
|
|
|
0x52, 0x65, 0x71, 0x1a, 0x10, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x54, 0x6f, 0x6b, 0x65,
|
|
|
|
0x65, 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x10, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x54, 0x6f,
|
|
|
|
0x6e, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x32, 0x45, 0x0a, 0x09, 0x55, 0x70, 0x64, 0x61, 0x74,
|
|
|
|
0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x32, 0x45, 0x0a, 0x09, 0x55, 0x70, 0x64,
|
|
|
|
0x65, 0x53, 0x6b, 0x75, 0x12, 0x38, 0x0a, 0x09, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x6b,
|
|
|
|
0x61, 0x74, 0x65, 0x53, 0x6b, 0x75, 0x12, 0x38, 0x0a, 0x09, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
|
|
|
|
0x75, 0x12, 0x13, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
|
|
|
|
0x53, 0x6b, 0x75, 0x12, 0x13, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x55, 0x70, 0x64, 0x61,
|
|
|
|
0x53, 0x6b, 0x75, 0x52, 0x65, 0x71, 0x1a, 0x14, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x55,
|
|
|
|
0x74, 0x65, 0x53, 0x6b, 0x75, 0x52, 0x65, 0x71, 0x1a, 0x14, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
|
|
|
0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x6b, 0x75, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x32, 0x4f,
|
|
|
|
0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x6b, 0x75, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00,
|
|
|
|
0x0a, 0x0d, 0x47, 0x65, 0x74, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x12,
|
|
|
|
0x32, 0x4f, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x54, 0x6f, 0x74, 0x61,
|
|
|
|
0x3e, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x54, 0x6f, 0x74, 0x61, 0x6c,
|
|
|
|
0x6c, 0x12, 0x3e, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x54, 0x6f, 0x74,
|
|
|
|
0x12, 0x14, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x54, 0x6f,
|
|
|
|
0x61, 0x6c, 0x12, 0x14, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72,
|
|
|
|
0x74, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x4f,
|
|
|
|
0x54, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
|
|
|
0x72, 0x64, 0x65, 0x72, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x32,
|
|
|
|
0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x22,
|
|
|
|
0x45, 0x0a, 0x09, 0x46, 0x69, 0x6e, 0x64, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x38, 0x0a, 0x09,
|
|
|
|
0x00, 0x42, 0x0a, 0x5a, 0x08, 0x2e, 0x2f, 0x3b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70,
|
|
|
|
0x46, 0x69, 0x6e, 0x64, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x13, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
|
|
|
0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
|
0x6f, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x14,
|
|
|
|
|
|
|
|
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4f, 0x72, 0x64, 0x65, 0x72,
|
|
|
|
|
|
|
|
0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x42, 0x0a, 0x5a, 0x08, 0x2e, 0x2f, 0x3b, 0x70, 0x72, 0x6f,
|
|
|
|
|
|
|
|
0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var (
|
|
|
|
var (
|
|
|
@ -2244,7 +2359,7 @@ func file_trade_proto_rawDescGZIP() []byte {
|
|
|
|
return file_trade_proto_rawDescData
|
|
|
|
return file_trade_proto_rawDescData
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var file_trade_proto_msgTypes = make([]protoimpl.MessageInfo, 25)
|
|
|
|
var file_trade_proto_msgTypes = make([]protoimpl.MessageInfo, 27)
|
|
|
|
var file_trade_proto_goTypes = []interface{}{
|
|
|
|
var file_trade_proto_goTypes = []interface{}{
|
|
|
|
(*TradeOrder)(nil), // 0: proto.TradeOrder
|
|
|
|
(*TradeOrder)(nil), // 0: proto.TradeOrder
|
|
|
|
(*AddTradeOrderReq)(nil), // 1: proto.AddTradeOrderReq
|
|
|
|
(*AddTradeOrderReq)(nil), // 1: proto.AddTradeOrderReq
|
|
|
@ -2270,45 +2385,50 @@ var file_trade_proto_goTypes = []interface{}{
|
|
|
|
(*UpdateSkuResp)(nil), // 21: proto.UpdateSkuResp
|
|
|
|
(*UpdateSkuResp)(nil), // 21: proto.UpdateSkuResp
|
|
|
|
(*OrderTotalReq)(nil), // 22: proto.OrderTotalReq
|
|
|
|
(*OrderTotalReq)(nil), // 22: proto.OrderTotalReq
|
|
|
|
(*OrderTotalResp)(nil), // 23: proto.OrderTotalResp
|
|
|
|
(*OrderTotalResp)(nil), // 23: proto.OrderTotalResp
|
|
|
|
nil, // 24: proto.Product.LabelListEntry
|
|
|
|
(*FindOrderReq)(nil), // 24: proto.FindOrderReq
|
|
|
|
|
|
|
|
(*FindOrderResp)(nil), // 25: proto.FindOrderResp
|
|
|
|
|
|
|
|
nil, // 26: proto.Product.LabelListEntry
|
|
|
|
}
|
|
|
|
}
|
|
|
|
var file_trade_proto_depIdxs = []int32{
|
|
|
|
var file_trade_proto_depIdxs = []int32{
|
|
|
|
0, // 0: proto.AddTradeOrderReq.tradeOrder:type_name -> proto.TradeOrder
|
|
|
|
0, // 0: proto.AddTradeOrderReq.tradeOrder:type_name -> proto.TradeOrder
|
|
|
|
0, // 1: proto.AddTradeOrderResp.tradeOrder:type_name -> proto.TradeOrder
|
|
|
|
0, // 1: proto.AddTradeOrderResp.tradeOrder:type_name -> proto.TradeOrder
|
|
|
|
3, // 2: proto.AddTradeOrderResp.products:type_name -> proto.ProductOrder
|
|
|
|
3, // 2: proto.AddTradeOrderResp.products:type_name -> proto.ProductOrder
|
|
|
|
4, // 3: proto.FindCartResp.shoppingCart:type_name -> proto.ShoppingCart
|
|
|
|
4, // 3: proto.FindCartResp.shoppingCart:type_name -> proto.ShoppingCart
|
|
|
|
24, // 4: proto.Product.labelList:type_name -> proto.Product.LabelListEntry
|
|
|
|
26, // 4: proto.Product.labelList:type_name -> proto.Product.LabelListEntry
|
|
|
|
9, // 5: proto.PageResp.product:type_name -> proto.Product
|
|
|
|
9, // 5: proto.PageResp.product:type_name -> proto.Product
|
|
|
|
12, // 6: proto.ProductDetailResp.productDetail:type_name -> proto.ProductDetail
|
|
|
|
12, // 6: proto.ProductDetailResp.productDetail:type_name -> proto.ProductDetail
|
|
|
|
15, // 7: proto.ProductSkuResp.productSku:type_name -> proto.ProductSku
|
|
|
|
15, // 7: proto.ProductSkuResp.productSku:type_name -> proto.ProductSku
|
|
|
|
15, // 8: proto.UpdateSkuReq.productSku:type_name -> proto.ProductSku
|
|
|
|
15, // 8: proto.UpdateSkuReq.productSku:type_name -> proto.ProductSku
|
|
|
|
1, // 9: proto.AddTradeOrder.AddTradeOrder:input_type -> proto.AddTradeOrderReq
|
|
|
|
0, // 9: proto.FindOrderResp.tradeOrder:type_name -> proto.TradeOrder
|
|
|
|
1, // 10: proto.UpdateTradeOrder.UpdateTradeOrder:input_type -> proto.AddTradeOrderReq
|
|
|
|
1, // 10: proto.AddTradeOrder.AddTradeOrder:input_type -> proto.AddTradeOrderReq
|
|
|
|
5, // 11: proto.UpdateCart.UpdateCart:input_type -> proto.UpdateCartReq
|
|
|
|
1, // 11: proto.UpdateTradeOrder.UpdateTradeOrder:input_type -> proto.AddTradeOrderReq
|
|
|
|
7, // 12: proto.FindCart.FindCart:input_type -> proto.FindCartReq
|
|
|
|
5, // 12: proto.UpdateCart.UpdateCart:input_type -> proto.UpdateCartReq
|
|
|
|
10, // 13: proto.Page.Page:input_type -> proto.PageReq
|
|
|
|
7, // 13: proto.FindCart.FindCart:input_type -> proto.FindCartReq
|
|
|
|
13, // 14: proto.ShowProductDetail.ShowProductDetail:input_type -> proto.ProductDetailReq
|
|
|
|
10, // 14: proto.Page.Page:input_type -> proto.PageReq
|
|
|
|
16, // 15: proto.ShowProductSku.ShowProductSku:input_type -> proto.ProductSkuReq
|
|
|
|
13, // 15: proto.ShowProductDetail.ShowProductDetail:input_type -> proto.ProductDetailReq
|
|
|
|
13, // 16: proto.ShowDetailSku.ShowDetailSku:input_type -> proto.ProductDetailReq
|
|
|
|
16, // 16: proto.ShowProductSku.ShowProductSku:input_type -> proto.ProductSkuReq
|
|
|
|
18, // 17: proto.GetUserToken.GetUserToken:input_type -> proto.TokenReq
|
|
|
|
13, // 17: proto.ShowDetailSku.ShowDetailSku:input_type -> proto.ProductDetailReq
|
|
|
|
20, // 18: proto.UpdateSku.UpdateSku:input_type -> proto.UpdateSkuReq
|
|
|
|
18, // 18: proto.GetUserToken.GetUserToken:input_type -> proto.TokenReq
|
|
|
|
22, // 19: proto.GetOrderTotal.GetOrderTotal:input_type -> proto.OrderTotalReq
|
|
|
|
20, // 19: proto.UpdateSku.UpdateSku:input_type -> proto.UpdateSkuReq
|
|
|
|
2, // 20: proto.AddTradeOrder.AddTradeOrder:output_type -> proto.AddTradeOrderResp
|
|
|
|
22, // 20: proto.GetOrderTotal.GetOrderTotal:input_type -> proto.OrderTotalReq
|
|
|
|
2, // 21: proto.UpdateTradeOrder.UpdateTradeOrder:output_type -> proto.AddTradeOrderResp
|
|
|
|
24, // 21: proto.FindOrder.FindOrder:input_type -> proto.FindOrderReq
|
|
|
|
6, // 22: proto.UpdateCart.UpdateCart:output_type -> proto.UpdateCartResp
|
|
|
|
2, // 22: proto.AddTradeOrder.AddTradeOrder:output_type -> proto.AddTradeOrderResp
|
|
|
|
8, // 23: proto.FindCart.FindCart:output_type -> proto.FindCartResp
|
|
|
|
2, // 23: proto.UpdateTradeOrder.UpdateTradeOrder:output_type -> proto.AddTradeOrderResp
|
|
|
|
11, // 24: proto.Page.Page:output_type -> proto.PageResp
|
|
|
|
6, // 24: proto.UpdateCart.UpdateCart:output_type -> proto.UpdateCartResp
|
|
|
|
14, // 25: proto.ShowProductDetail.ShowProductDetail:output_type -> proto.ProductDetailResp
|
|
|
|
8, // 25: proto.FindCart.FindCart:output_type -> proto.FindCartResp
|
|
|
|
17, // 26: proto.ShowProductSku.ShowProductSku:output_type -> proto.ProductSkuResp
|
|
|
|
11, // 26: proto.Page.Page:output_type -> proto.PageResp
|
|
|
|
17, // 27: proto.ShowDetailSku.ShowDetailSku:output_type -> proto.ProductSkuResp
|
|
|
|
14, // 27: proto.ShowProductDetail.ShowProductDetail:output_type -> proto.ProductDetailResp
|
|
|
|
19, // 28: proto.GetUserToken.GetUserToken:output_type -> proto.TokenResp
|
|
|
|
17, // 28: proto.ShowProductSku.ShowProductSku:output_type -> proto.ProductSkuResp
|
|
|
|
21, // 29: proto.UpdateSku.UpdateSku:output_type -> proto.UpdateSkuResp
|
|
|
|
17, // 29: proto.ShowDetailSku.ShowDetailSku:output_type -> proto.ProductSkuResp
|
|
|
|
23, // 30: proto.GetOrderTotal.GetOrderTotal:output_type -> proto.OrderTotalResp
|
|
|
|
19, // 30: proto.GetUserToken.GetUserToken:output_type -> proto.TokenResp
|
|
|
|
20, // [20:31] is the sub-list for method output_type
|
|
|
|
21, // 31: proto.UpdateSku.UpdateSku:output_type -> proto.UpdateSkuResp
|
|
|
|
9, // [9:20] is the sub-list for method input_type
|
|
|
|
23, // 32: proto.GetOrderTotal.GetOrderTotal:output_type -> proto.OrderTotalResp
|
|
|
|
9, // [9:9] is the sub-list for extension type_name
|
|
|
|
25, // 33: proto.FindOrder.FindOrder:output_type -> proto.FindOrderResp
|
|
|
|
9, // [9:9] is the sub-list for extension extendee
|
|
|
|
22, // [22:34] is the sub-list for method output_type
|
|
|
|
0, // [0:9] is the sub-list for field type_name
|
|
|
|
10, // [10:22] is the sub-list for method input_type
|
|
|
|
|
|
|
|
10, // [10:10] is the sub-list for extension type_name
|
|
|
|
|
|
|
|
10, // [10:10] is the sub-list for extension extendee
|
|
|
|
|
|
|
|
0, // [0:10] is the sub-list for field type_name
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func init() { file_trade_proto_init() }
|
|
|
|
func init() { file_trade_proto_init() }
|
|
|
@ -2605,6 +2725,30 @@ func file_trade_proto_init() {
|
|
|
|
return nil
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
file_trade_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
|
|
|
|
switch v := v.(*FindOrderReq); i {
|
|
|
|
|
|
|
|
case 0:
|
|
|
|
|
|
|
|
return &v.state
|
|
|
|
|
|
|
|
case 1:
|
|
|
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
|
|
|
case 2:
|
|
|
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
file_trade_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
|
|
|
|
switch v := v.(*FindOrderResp); i {
|
|
|
|
|
|
|
|
case 0:
|
|
|
|
|
|
|
|
return &v.state
|
|
|
|
|
|
|
|
case 1:
|
|
|
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
|
|
|
case 2:
|
|
|
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
type x struct{}
|
|
|
|
type x struct{}
|
|
|
|
out := protoimpl.TypeBuilder{
|
|
|
|
out := protoimpl.TypeBuilder{
|
|
|
@ -2612,9 +2756,9 @@ func file_trade_proto_init() {
|
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
|
RawDescriptor: file_trade_proto_rawDesc,
|
|
|
|
RawDescriptor: file_trade_proto_rawDesc,
|
|
|
|
NumEnums: 0,
|
|
|
|
NumEnums: 0,
|
|
|
|
NumMessages: 25,
|
|
|
|
NumMessages: 27,
|
|
|
|
NumExtensions: 0,
|
|
|
|
NumExtensions: 0,
|
|
|
|
NumServices: 11,
|
|
|
|
NumServices: 12,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
GoTypes: file_trade_proto_goTypes,
|
|
|
|
GoTypes: file_trade_proto_goTypes,
|
|
|
|
DependencyIndexes: file_trade_proto_depIdxs,
|
|
|
|
DependencyIndexes: file_trade_proto_depIdxs,
|
|
|
@ -3443,3 +3587,75 @@ var _GetOrderTotal_serviceDesc = grpc.ServiceDesc{
|
|
|
|
Streams: []grpc.StreamDesc{},
|
|
|
|
Streams: []grpc.StreamDesc{},
|
|
|
|
Metadata: "trade.proto",
|
|
|
|
Metadata: "trade.proto",
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// FindOrderClient is the client API for FindOrder service.
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
|
|
|
|
|
|
type FindOrderClient interface {
|
|
|
|
|
|
|
|
FindOrder(ctx context.Context, in *FindOrderReq, opts ...grpc.CallOption) (*FindOrderResp, error)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type findOrderClient struct {
|
|
|
|
|
|
|
|
cc grpc.ClientConnInterface
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func NewFindOrderClient(cc grpc.ClientConnInterface) FindOrderClient {
|
|
|
|
|
|
|
|
return &findOrderClient{cc}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (c *findOrderClient) FindOrder(ctx context.Context, in *FindOrderReq, opts ...grpc.CallOption) (*FindOrderResp, error) {
|
|
|
|
|
|
|
|
out := new(FindOrderResp)
|
|
|
|
|
|
|
|
err := c.cc.Invoke(ctx, "/proto.FindOrder/FindOrder", in, out, opts...)
|
|
|
|
|
|
|
|
if err != nil {
|
|
|
|
|
|
|
|
return nil, err
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return out, nil
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// FindOrderServer is the server API for FindOrder service.
|
|
|
|
|
|
|
|
type FindOrderServer interface {
|
|
|
|
|
|
|
|
FindOrder(context.Context, *FindOrderReq) (*FindOrderResp, error)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// UnimplementedFindOrderServer can be embedded to have forward compatible implementations.
|
|
|
|
|
|
|
|
type UnimplementedFindOrderServer struct {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (*UnimplementedFindOrderServer) FindOrder(context.Context, *FindOrderReq) (*FindOrderResp, error) {
|
|
|
|
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method FindOrder not implemented")
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func RegisterFindOrderServer(s *grpc.Server, srv FindOrderServer) {
|
|
|
|
|
|
|
|
s.RegisterService(&_FindOrder_serviceDesc, srv)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func _FindOrder_FindOrder_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
|
|
|
|
in := new(FindOrderReq)
|
|
|
|
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
|
|
|
|
return nil, err
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if interceptor == nil {
|
|
|
|
|
|
|
|
return srv.(FindOrderServer).FindOrder(ctx, in)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
|
|
|
|
Server: srv,
|
|
|
|
|
|
|
|
FullMethod: "/proto.FindOrder/FindOrder",
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
|
|
|
return srv.(FindOrderServer).FindOrder(ctx, req.(*FindOrderReq))
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var _FindOrder_serviceDesc = grpc.ServiceDesc{
|
|
|
|
|
|
|
|
ServiceName: "proto.FindOrder",
|
|
|
|
|
|
|
|
HandlerType: (*FindOrderServer)(nil),
|
|
|
|
|
|
|
|
Methods: []grpc.MethodDesc{
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
MethodName: "FindOrder",
|
|
|
|
|
|
|
|
Handler: _FindOrder_FindOrder_Handler,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
Streams: []grpc.StreamDesc{},
|
|
|
|
|
|
|
|
Metadata: "trade.proto",
|
|
|
|
|
|
|
|
}
|
|
|
|