|
|
@@ -0,0 +1,321 @@
|
|
|
+// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
+// versions:
|
|
|
+// protoc-gen-go v1.25.0
|
|
|
+// protoc v3.11.4
|
|
|
+// source: mtp2.proto
|
|
|
+
|
|
|
+package pb
|
|
|
+
|
|
|
+import (
|
|
|
+ proto "github.com/golang/protobuf/proto"
|
|
|
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
|
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
|
+ reflect "reflect"
|
|
|
+ sync "sync"
|
|
|
+)
|
|
|
+
|
|
|
+const (
|
|
|
+ // Verify that this generated code is sufficiently up-to-date.
|
|
|
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
|
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
|
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
|
+)
|
|
|
+
|
|
|
+// This is a compile-time assertion that a sufficiently up-to-date version
|
|
|
+// of the legacy proto package is being used.
|
|
|
+const _ = proto.ProtoPackageIsVersion4
|
|
|
+
|
|
|
+// 消息头
|
|
|
+type MessageHead struct {
|
|
|
+ state protoimpl.MessageState
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
+
|
|
|
+ FunCode *uint32 `protobuf:"varint,1,opt,name=FunCode" json:"FunCode,omitempty"` // 功能号
|
|
|
+ RequestID *uint32 `protobuf:"varint,2,opt,name=RequestID" json:"RequestID,omitempty"` // 客户端的流水ID
|
|
|
+ AccountID *uint64 `protobuf:"varint,3,opt,name=AccountID" json:"AccountID,omitempty"` // 账号ID
|
|
|
+ AccessID *uint32 `protobuf:"varint,4,opt,name=AccessID" json:"AccessID,omitempty"` //二级分配给客户端的接入ID
|
|
|
+ ClientTime *int64 `protobuf:"varint,5,opt,name=ClientTime" json:"ClientTime,omitempty"` //消息发起时间
|
|
|
+ GoodsID *uint32 `protobuf:"varint,6,opt,name=GoodsID" json:"GoodsID,omitempty"` //商品ID
|
|
|
+ UUID *string `protobuf:"bytes,7,opt,name=UUID" json:"UUID,omitempty"` // 消息唯一ID
|
|
|
+ MarketID *uint32 `protobuf:"varint,8,opt,name=MarketID" json:"MarketID,omitempty"` // 所属市场ID
|
|
|
+ UserID *uint32 `protobuf:"varint,9,opt,name=UserID" json:"UserID,omitempty"` // 用户ID
|
|
|
+ ResponseTopic *string `protobuf:"bytes,10,opt,name=ResponseTopic" json:"ResponseTopic,omitempty"` // 应答消息所属主题
|
|
|
+ AccountID2 *uint64 `protobuf:"varint,11,opt,name=AccountID2" json:"AccountID2,omitempty"` // 账号ID-币币交易使用
|
|
|
+}
|
|
|
+
|
|
|
+func (x *MessageHead) Reset() {
|
|
|
+ *x = MessageHead{}
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
+ mi := &file_mtp2_proto_msgTypes[0]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+func (x *MessageHead) String() string {
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
+}
|
|
|
+
|
|
|
+func (*MessageHead) ProtoMessage() {}
|
|
|
+
|
|
|
+func (x *MessageHead) ProtoReflect() protoreflect.Message {
|
|
|
+ mi := &file_mtp2_proto_msgTypes[0]
|
|
|
+ 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 MessageHead.ProtoReflect.Descriptor instead.
|
|
|
+func (*MessageHead) Descriptor() ([]byte, []int) {
|
|
|
+ return file_mtp2_proto_rawDescGZIP(), []int{0}
|
|
|
+}
|
|
|
+
|
|
|
+func (x *MessageHead) GetFunCode() uint32 {
|
|
|
+ if x != nil && x.FunCode != nil {
|
|
|
+ return *x.FunCode
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *MessageHead) GetRequestID() uint32 {
|
|
|
+ if x != nil && x.RequestID != nil {
|
|
|
+ return *x.RequestID
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *MessageHead) GetAccountID() uint64 {
|
|
|
+ if x != nil && x.AccountID != nil {
|
|
|
+ return *x.AccountID
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *MessageHead) GetAccessID() uint32 {
|
|
|
+ if x != nil && x.AccessID != nil {
|
|
|
+ return *x.AccessID
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *MessageHead) GetClientTime() int64 {
|
|
|
+ if x != nil && x.ClientTime != nil {
|
|
|
+ return *x.ClientTime
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *MessageHead) GetGoodsID() uint32 {
|
|
|
+ if x != nil && x.GoodsID != nil {
|
|
|
+ return *x.GoodsID
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *MessageHead) GetUUID() string {
|
|
|
+ if x != nil && x.UUID != nil {
|
|
|
+ return *x.UUID
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *MessageHead) GetMarketID() uint32 {
|
|
|
+ if x != nil && x.MarketID != nil {
|
|
|
+ return *x.MarketID
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *MessageHead) GetUserID() uint32 {
|
|
|
+ if x != nil && x.UserID != nil {
|
|
|
+ return *x.UserID
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *MessageHead) GetResponseTopic() string {
|
|
|
+ if x != nil && x.ResponseTopic != nil {
|
|
|
+ return *x.ResponseTopic
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *MessageHead) GetAccountID2() uint64 {
|
|
|
+ if x != nil && x.AccountID2 != nil {
|
|
|
+ return *x.AccountID2
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+// 铁合金成交通知
|
|
|
+type THJPurchaseTradeNtf struct {
|
|
|
+ state protoimpl.MessageState
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
+
|
|
|
+ Header *MessageHead `protobuf:"bytes,1,opt,name=Header" json:"Header,omitempty"` // 消息头
|
|
|
+ WRTradeDetailID *uint64 `protobuf:"varint,2,opt,name=WRTradeDetailID" json:"WRTradeDetailID,omitempty"` // uint64 预售成交明细ID
|
|
|
+}
|
|
|
+
|
|
|
+func (x *THJPurchaseTradeNtf) Reset() {
|
|
|
+ *x = THJPurchaseTradeNtf{}
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
+ mi := &file_mtp2_proto_msgTypes[1]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+func (x *THJPurchaseTradeNtf) String() string {
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
+}
|
|
|
+
|
|
|
+func (*THJPurchaseTradeNtf) ProtoMessage() {}
|
|
|
+
|
|
|
+func (x *THJPurchaseTradeNtf) ProtoReflect() protoreflect.Message {
|
|
|
+ mi := &file_mtp2_proto_msgTypes[1]
|
|
|
+ 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 THJPurchaseTradeNtf.ProtoReflect.Descriptor instead.
|
|
|
+func (*THJPurchaseTradeNtf) Descriptor() ([]byte, []int) {
|
|
|
+ return file_mtp2_proto_rawDescGZIP(), []int{1}
|
|
|
+}
|
|
|
+
|
|
|
+func (x *THJPurchaseTradeNtf) GetHeader() *MessageHead {
|
|
|
+ if x != nil {
|
|
|
+ return x.Header
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+
|
|
|
+func (x *THJPurchaseTradeNtf) GetWRTradeDetailID() uint64 {
|
|
|
+ if x != nil && x.WRTradeDetailID != nil {
|
|
|
+ return *x.WRTradeDetailID
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+var File_mtp2_proto protoreflect.FileDescriptor
|
|
|
+
|
|
|
+var file_mtp2_proto_rawDesc = []byte{
|
|
|
+ 0x0a, 0x0a, 0x6d, 0x74, 0x70, 0x32, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62,
|
|
|
+ 0x22, 0xc7, 0x02, 0x0a, 0x0b, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48, 0x65, 0x61, 0x64,
|
|
|
+ 0x12, 0x18, 0x0a, 0x07, 0x46, 0x75, 0x6e, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
|
|
|
+ 0x0d, 0x52, 0x07, 0x46, 0x75, 0x6e, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x52, 0x65,
|
|
|
+ 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x52,
|
|
|
+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x44, 0x12, 0x1c, 0x0a, 0x09, 0x41, 0x63, 0x63, 0x6f,
|
|
|
+ 0x75, 0x6e, 0x74, 0x49, 0x44, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x41, 0x63, 0x63,
|
|
|
+ 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x44, 0x12, 0x1a, 0x0a, 0x08, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73,
|
|
|
+ 0x49, 0x44, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73,
|
|
|
+ 0x49, 0x44, 0x12, 0x1e, 0x0a, 0x0a, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x54, 0x69, 0x6d, 0x65,
|
|
|
+ 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x54, 0x69,
|
|
|
+ 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x47, 0x6f, 0x6f, 0x64, 0x73, 0x49, 0x44, 0x18, 0x06, 0x20,
|
|
|
+ 0x01, 0x28, 0x0d, 0x52, 0x07, 0x47, 0x6f, 0x6f, 0x64, 0x73, 0x49, 0x44, 0x12, 0x12, 0x0a, 0x04,
|
|
|
+ 0x55, 0x55, 0x49, 0x44, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x55, 0x55, 0x49, 0x44,
|
|
|
+ 0x12, 0x1a, 0x0a, 0x08, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x44, 0x18, 0x08, 0x20, 0x01,
|
|
|
+ 0x28, 0x0d, 0x52, 0x08, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x44, 0x12, 0x16, 0x0a, 0x06,
|
|
|
+ 0x55, 0x73, 0x65, 0x72, 0x49, 0x44, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x55, 0x73,
|
|
|
+ 0x65, 0x72, 0x49, 0x44, 0x12, 0x24, 0x0a, 0x0d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
|
|
|
+ 0x54, 0x6f, 0x70, 0x69, 0x63, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x52, 0x65, 0x73,
|
|
|
+ 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x1e, 0x0a, 0x0a, 0x41, 0x63,
|
|
|
+ 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x44, 0x32, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a,
|
|
|
+ 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x44, 0x32, 0x22, 0x68, 0x0a, 0x13, 0x54, 0x48,
|
|
|
+ 0x4a, 0x50, 0x75, 0x72, 0x63, 0x68, 0x61, 0x73, 0x65, 0x54, 0x72, 0x61, 0x64, 0x65, 0x4e, 0x74,
|
|
|
+ 0x66, 0x12, 0x27, 0x0a, 0x06, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28,
|
|
|
+ 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48, 0x65,
|
|
|
+ 0x61, 0x64, 0x52, 0x06, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x28, 0x0a, 0x0f, 0x57, 0x52,
|
|
|
+ 0x54, 0x72, 0x61, 0x64, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x49, 0x44, 0x18, 0x02, 0x20,
|
|
|
+ 0x01, 0x28, 0x04, 0x52, 0x0f, 0x57, 0x52, 0x54, 0x72, 0x61, 0x64, 0x65, 0x44, 0x65, 0x74, 0x61,
|
|
|
+ 0x69, 0x6c, 0x49, 0x44,
|
|
|
+}
|
|
|
+
|
|
|
+var (
|
|
|
+ file_mtp2_proto_rawDescOnce sync.Once
|
|
|
+ file_mtp2_proto_rawDescData = file_mtp2_proto_rawDesc
|
|
|
+)
|
|
|
+
|
|
|
+func file_mtp2_proto_rawDescGZIP() []byte {
|
|
|
+ file_mtp2_proto_rawDescOnce.Do(func() {
|
|
|
+ file_mtp2_proto_rawDescData = protoimpl.X.CompressGZIP(file_mtp2_proto_rawDescData)
|
|
|
+ })
|
|
|
+ return file_mtp2_proto_rawDescData
|
|
|
+}
|
|
|
+
|
|
|
+var file_mtp2_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
|
|
+var file_mtp2_proto_goTypes = []interface{}{
|
|
|
+ (*MessageHead)(nil), // 0: pb.MessageHead
|
|
|
+ (*THJPurchaseTradeNtf)(nil), // 1: pb.THJPurchaseTradeNtf
|
|
|
+}
|
|
|
+var file_mtp2_proto_depIdxs = []int32{
|
|
|
+ 0, // 0: pb.THJPurchaseTradeNtf.Header:type_name -> pb.MessageHead
|
|
|
+ 1, // [1:1] is the sub-list for method output_type
|
|
|
+ 1, // [1:1] is the sub-list for method input_type
|
|
|
+ 1, // [1:1] is the sub-list for extension type_name
|
|
|
+ 1, // [1:1] is the sub-list for extension extendee
|
|
|
+ 0, // [0:1] is the sub-list for field type_name
|
|
|
+}
|
|
|
+
|
|
|
+func init() { file_mtp2_proto_init() }
|
|
|
+func file_mtp2_proto_init() {
|
|
|
+ if File_mtp2_proto != nil {
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if !protoimpl.UnsafeEnabled {
|
|
|
+ file_mtp2_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
|
+ switch v := v.(*MessageHead); i {
|
|
|
+ case 0:
|
|
|
+ return &v.state
|
|
|
+ case 1:
|
|
|
+ return &v.sizeCache
|
|
|
+ case 2:
|
|
|
+ return &v.unknownFields
|
|
|
+ default:
|
|
|
+ return nil
|
|
|
+ }
|
|
|
+ }
|
|
|
+ file_mtp2_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
|
+ switch v := v.(*THJPurchaseTradeNtf); i {
|
|
|
+ case 0:
|
|
|
+ return &v.state
|
|
|
+ case 1:
|
|
|
+ return &v.sizeCache
|
|
|
+ case 2:
|
|
|
+ return &v.unknownFields
|
|
|
+ default:
|
|
|
+ return nil
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ type x struct{}
|
|
|
+ out := protoimpl.TypeBuilder{
|
|
|
+ File: protoimpl.DescBuilder{
|
|
|
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
+ RawDescriptor: file_mtp2_proto_rawDesc,
|
|
|
+ NumEnums: 0,
|
|
|
+ NumMessages: 2,
|
|
|
+ NumExtensions: 0,
|
|
|
+ NumServices: 0,
|
|
|
+ },
|
|
|
+ GoTypes: file_mtp2_proto_goTypes,
|
|
|
+ DependencyIndexes: file_mtp2_proto_depIdxs,
|
|
|
+ MessageInfos: file_mtp2_proto_msgTypes,
|
|
|
+ }.Build()
|
|
|
+ File_mtp2_proto = out.File
|
|
|
+ file_mtp2_proto_rawDesc = nil
|
|
|
+ file_mtp2_proto_goTypes = nil
|
|
|
+ file_mtp2_proto_depIdxs = nil
|
|
|
+}
|