// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.28.0 // protoc v3.20.0 // source: mail.proto package pb import ( 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) ) type MailAttachment struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Itemid uint32 `protobuf:"varint,1,opt,name=Itemid,proto3" json:"Itemid,omitempty"` // 道具iD ItemCount uint32 `protobuf:"varint,2,opt,name=ItemCount,proto3" json:"ItemCount,omitempty"` // 数量 } func (x *MailAttachment) Reset() { *x = MailAttachment{} if protoimpl.UnsafeEnabled { mi := &file_mail_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *MailAttachment) String() string { return protoimpl.X.MessageStringOf(x) } func (*MailAttachment) ProtoMessage() {} func (x *MailAttachment) ProtoReflect() protoreflect.Message { mi := &file_mail_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 MailAttachment.ProtoReflect.Descriptor instead. func (*MailAttachment) Descriptor() ([]byte, []int) { return file_mail_proto_rawDescGZIP(), []int{0} } func (x *MailAttachment) GetItemid() uint32 { if x != nil { return x.Itemid } return 0 } func (x *MailAttachment) GetItemCount() uint32 { if x != nil { return x.ItemCount } return 0 } type MailData struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Title string `protobuf:"bytes,1,opt,name=Title,proto3" json:"Title,omitempty"` // 邮件标题 Contex string `protobuf:"bytes,2,opt,name=Contex,proto3" json:"Contex,omitempty"` // 邮件内容 CreateTime uint64 `protobuf:"varint,3,opt,name=CreateTime,proto3" json:"CreateTime,omitempty"` // 发送时间 DueTime uint64 `protobuf:"varint,4,opt,name=DueTime,proto3" json:"DueTime,omitempty"` // 过期时间 Check bool `protobuf:"varint,5,opt,name=Check,proto3" json:"Check,omitempty"` // 是否查看 Items []*MailAttachment `protobuf:"bytes,6,rep,name=Items,proto3" json:"Items,omitempty"` // 附件 } func (x *MailData) Reset() { *x = MailData{} if protoimpl.UnsafeEnabled { mi := &file_mail_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *MailData) String() string { return protoimpl.X.MessageStringOf(x) } func (*MailData) ProtoMessage() {} func (x *MailData) ProtoReflect() protoreflect.Message { mi := &file_mail_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 MailData.ProtoReflect.Descriptor instead. func (*MailData) Descriptor() ([]byte, []int) { return file_mail_proto_rawDescGZIP(), []int{1} } func (x *MailData) GetTitle() string { if x != nil { return x.Title } return "" } func (x *MailData) GetContex() string { if x != nil { return x.Contex } return "" } func (x *MailData) GetCreateTime() uint64 { if x != nil { return x.CreateTime } return 0 } func (x *MailData) GetDueTime() uint64 { if x != nil { return x.DueTime } return 0 } func (x *MailData) GetCheck() bool { if x != nil { return x.Check } return false } func (x *MailData) GetItems() []*MailAttachment { if x != nil { return x.Items } return nil } type DB_UserMailData struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields UserId string `protobuf:"bytes,1,opt,name=UserId,proto3" json:"UserId,omitempty" bson:"_id"` //tags:{bson:"_id"}用户Id Mails []*MailData `protobuf:"bytes,2,rep,name=mails,proto3" json:"mails,omitempty"` // 邮件列表 } func (x *DB_UserMailData) Reset() { *x = DB_UserMailData{} if protoimpl.UnsafeEnabled { mi := &file_mail_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *DB_UserMailData) String() string { return protoimpl.X.MessageStringOf(x) } func (*DB_UserMailData) ProtoMessage() {} func (x *DB_UserMailData) ProtoReflect() protoreflect.Message { mi := &file_mail_proto_msgTypes[2] 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 DB_UserMailData.ProtoReflect.Descriptor instead. func (*DB_UserMailData) Descriptor() ([]byte, []int) { return file_mail_proto_rawDescGZIP(), []int{2} } func (x *DB_UserMailData) GetUserId() string { if x != nil { return x.UserId } return "" } func (x *DB_UserMailData) GetMails() []*MailData { if x != nil { return x.Mails } return nil } var File_mail_proto protoreflect.FileDescriptor var file_mail_proto_rawDesc = []byte{ 0x0a, 0x0a, 0x6d, 0x61, 0x69, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x46, 0x0a, 0x0e, 0x4d, 0x61, 0x69, 0x6c, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x49, 0x74, 0x65, 0x6d, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x49, 0x74, 0x65, 0x6d, 0x69, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x49, 0x74, 0x65, 0x6d, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x49, 0x74, 0x65, 0x6d, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0xaf, 0x01, 0x0a, 0x08, 0x4d, 0x61, 0x69, 0x6c, 0x44, 0x61, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x54, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x54, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x12, 0x1e, 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x44, 0x75, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x44, 0x75, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x25, 0x0a, 0x05, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x4d, 0x61, 0x69, 0x6c, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x4a, 0x0a, 0x0f, 0x44, 0x42, 0x5f, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x61, 0x69, 0x6c, 0x44, 0x61, 0x74, 0x61, 0x12, 0x16, 0x0a, 0x06, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x05, 0x6d, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x4d, 0x61, 0x69, 0x6c, 0x44, 0x61, 0x74, 0x61, 0x52, 0x05, 0x6d, 0x61, 0x69, 0x6c, 0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( file_mail_proto_rawDescOnce sync.Once file_mail_proto_rawDescData = file_mail_proto_rawDesc ) func file_mail_proto_rawDescGZIP() []byte { file_mail_proto_rawDescOnce.Do(func() { file_mail_proto_rawDescData = protoimpl.X.CompressGZIP(file_mail_proto_rawDescData) }) return file_mail_proto_rawDescData } var file_mail_proto_msgTypes = make([]protoimpl.MessageInfo, 3) var file_mail_proto_goTypes = []interface{}{ (*MailAttachment)(nil), // 0: MailAttachment (*MailData)(nil), // 1: MailData (*DB_UserMailData)(nil), // 2: DB_UserMailData } var file_mail_proto_depIdxs = []int32{ 0, // 0: MailData.Items:type_name -> MailAttachment 1, // 1: DB_UserMailData.mails:type_name -> MailData 2, // [2:2] is the sub-list for method output_type 2, // [2:2] is the sub-list for method input_type 2, // [2:2] is the sub-list for extension type_name 2, // [2:2] is the sub-list for extension extendee 0, // [0:2] is the sub-list for field type_name } func init() { file_mail_proto_init() } func file_mail_proto_init() { if File_mail_proto != nil { return } if !protoimpl.UnsafeEnabled { file_mail_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MailAttachment); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_mail_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MailData); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_mail_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DB_UserMailData); 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_mail_proto_rawDesc, NumEnums: 0, NumMessages: 3, NumExtensions: 0, NumServices: 0, }, GoTypes: file_mail_proto_goTypes, DependencyIndexes: file_mail_proto_depIdxs, MessageInfos: file_mail_proto_msgTypes, }.Build() File_mail_proto = out.File file_mail_proto_rawDesc = nil file_mail_proto_goTypes = nil file_mail_proto_depIdxs = nil }