// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.8 // protoc (unknown) // source: info.proto package passport import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" ) 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 BindRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Action string `protobuf:"bytes,1,opt,name=action,proto3" json:"action,omitempty"` //操作动作 Phone string `protobuf:"bytes,2,opt,name=phone,proto3" json:"phone,omitempty"` // 手机号码 必填 Code string `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"` // 验证码 Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"` // 密码 必填 Nickname string `protobuf:"bytes,5,opt,name=nickname,proto3" json:"nickname,omitempty"` // 昵称 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *BindRequest) Reset() { *x = BindRequest{} mi := &file_info_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *BindRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*BindRequest) ProtoMessage() {} func (x *BindRequest) ProtoReflect() protoreflect.Message { mi := &file_info_proto_msgTypes[0] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use BindRequest.ProtoReflect.Descriptor instead. func (*BindRequest) Descriptor() ([]byte, []int) { return file_info_proto_rawDescGZIP(), []int{0} } func (x *BindRequest) GetAction() string { if x != nil { return x.Action } return "" } func (x *BindRequest) GetPhone() string { if x != nil { return x.Phone } return "" } func (x *BindRequest) GetCode() string { if x != nil { return x.Code } return "" } func (x *BindRequest) GetPassword() string { if x != nil { return x.Password } return "" } func (x *BindRequest) GetNickname() string { if x != nil { return x.Nickname } return "" } type GetDataReply struct { state protoimpl.MessageState `protogen:"open.v1"` Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` //帐号 Phone string `protobuf:"bytes,2,opt,name=phone,proto3" json:"phone,omitempty"` //手机号 Nickname string `protobuf:"bytes,3,opt,name=nickname,proto3" json:"nickname,omitempty"` //昵称 Avatar string `protobuf:"bytes,4,opt,name=avatar,proto3" json:"avatar,omitempty"` //头像 Birthday string `protobuf:"bytes,5,opt,name=birthday,proto3" json:"birthday,omitempty"` //生日 Sex int32 `protobuf:"varint,6,opt,name=sex,proto3" json:"sex,omitempty"` //性别,1为男性,2为女性 Province int32 `protobuf:"varint,7,opt,name=province,proto3" json:"province,omitempty"` //省 City int32 `protobuf:"varint,8,opt,name=city,proto3" json:"city,omitempty"` //市 Area int32 `protobuf:"varint,9,opt,name=area,proto3" json:"area,omitempty"` //区 Sign string `protobuf:"bytes,10,opt,name=sign,proto3" json:"sign,omitempty"` //签名 Approve int32 `protobuf:"varint,11,opt,name=approve,proto3" json:"approve,omitempty"` //状态:-2,认证未通过,0为未认证,1为审核中,2为认证成功 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetDataReply) Reset() { *x = GetDataReply{} mi := &file_info_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetDataReply) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetDataReply) ProtoMessage() {} func (x *GetDataReply) ProtoReflect() protoreflect.Message { mi := &file_info_proto_msgTypes[1] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use GetDataReply.ProtoReflect.Descriptor instead. func (*GetDataReply) Descriptor() ([]byte, []int) { return file_info_proto_rawDescGZIP(), []int{1} } func (x *GetDataReply) GetAccount() string { if x != nil { return x.Account } return "" } func (x *GetDataReply) GetPhone() string { if x != nil { return x.Phone } return "" } func (x *GetDataReply) GetNickname() string { if x != nil { return x.Nickname } return "" } func (x *GetDataReply) GetAvatar() string { if x != nil { return x.Avatar } return "" } func (x *GetDataReply) GetBirthday() string { if x != nil { return x.Birthday } return "" } func (x *GetDataReply) GetSex() int32 { if x != nil { return x.Sex } return 0 } func (x *GetDataReply) GetProvince() int32 { if x != nil { return x.Province } return 0 } func (x *GetDataReply) GetCity() int32 { if x != nil { return x.City } return 0 } func (x *GetDataReply) GetArea() int32 { if x != nil { return x.Area } return 0 } func (x *GetDataReply) GetSign() string { if x != nil { return x.Sign } return "" } func (x *GetDataReply) GetApprove() int32 { if x != nil { return x.Approve } return 0 } type SetDataRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Nickname string `protobuf:"bytes,1,opt,name=nickname,proto3" json:"nickname,omitempty"` //昵称 Avatar string `protobuf:"bytes,2,opt,name=avatar,proto3" json:"avatar,omitempty"` //头像 Birthday string `protobuf:"bytes,3,opt,name=birthday,proto3" json:"birthday,omitempty"` //生日 Sex int32 `protobuf:"varint,4,opt,name=sex,proto3" json:"sex,omitempty"` //性别,1为男性,2为女性 Province int32 `protobuf:"varint,5,opt,name=province,proto3" json:"province,omitempty"` //省 City int32 `protobuf:"varint,6,opt,name=city,proto3" json:"city,omitempty"` //市 Area int32 `protobuf:"varint,7,opt,name=area,proto3" json:"area,omitempty"` //区 Sign string `protobuf:"bytes,8,opt,name=sign,proto3" json:"sign,omitempty"` //签名 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *SetDataRequest) Reset() { *x = SetDataRequest{} mi := &file_info_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *SetDataRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*SetDataRequest) ProtoMessage() {} func (x *SetDataRequest) ProtoReflect() protoreflect.Message { mi := &file_info_proto_msgTypes[2] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use SetDataRequest.ProtoReflect.Descriptor instead. func (*SetDataRequest) Descriptor() ([]byte, []int) { return file_info_proto_rawDescGZIP(), []int{2} } func (x *SetDataRequest) GetNickname() string { if x != nil { return x.Nickname } return "" } func (x *SetDataRequest) GetAvatar() string { if x != nil { return x.Avatar } return "" } func (x *SetDataRequest) GetBirthday() string { if x != nil { return x.Birthday } return "" } func (x *SetDataRequest) GetSex() int32 { if x != nil { return x.Sex } return 0 } func (x *SetDataRequest) GetProvince() int32 { if x != nil { return x.Province } return 0 } func (x *SetDataRequest) GetCity() int32 { if x != nil { return x.City } return 0 } func (x *SetDataRequest) GetArea() int32 { if x != nil { return x.Area } return 0 } func (x *SetDataRequest) GetSign() string { if x != nil { return x.Sign } return "" } type SetPasswordRequest struct { state protoimpl.MessageState `protogen:"open.v1"` OldPassword string `protobuf:"bytes,3,opt,name=old_password,json=oldPassword,proto3" json:"old_password,omitempty"` // 旧密码 NewPassword string `protobuf:"bytes,4,opt,name=new_password,json=newPassword,proto3" json:"new_password,omitempty"` // 新密码 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *SetPasswordRequest) Reset() { *x = SetPasswordRequest{} mi := &file_info_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *SetPasswordRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*SetPasswordRequest) ProtoMessage() {} func (x *SetPasswordRequest) ProtoReflect() protoreflect.Message { mi := &file_info_proto_msgTypes[3] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use SetPasswordRequest.ProtoReflect.Descriptor instead. func (*SetPasswordRequest) Descriptor() ([]byte, []int) { return file_info_proto_rawDescGZIP(), []int{3} } func (x *SetPasswordRequest) GetOldPassword() string { if x != nil { return x.OldPassword } return "" } func (x *SetPasswordRequest) GetNewPassword() string { if x != nil { return x.NewPassword } return "" } type StatisticsRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Field []string `protobuf:"bytes,1,rep,name=field,proto3" json:"field,omitempty"` //要获取的统计数据字段。 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *StatisticsRequest) Reset() { *x = StatisticsRequest{} mi := &file_info_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *StatisticsRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*StatisticsRequest) ProtoMessage() {} func (x *StatisticsRequest) ProtoReflect() protoreflect.Message { mi := &file_info_proto_msgTypes[4] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use StatisticsRequest.ProtoReflect.Descriptor instead. func (*StatisticsRequest) Descriptor() ([]byte, []int) { return file_info_proto_rawDescGZIP(), []int{4} } func (x *StatisticsRequest) GetField() []string { if x != nil { return x.Field } return nil } type StatisticsReply struct { state protoimpl.MessageState `protogen:"open.v1"` Data map[string]int64 `protobuf:"bytes,1,rep,name=Data,proto3" json:"Data,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"` //数据以Map格式输出 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *StatisticsReply) Reset() { *x = StatisticsReply{} mi := &file_info_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *StatisticsReply) String() string { return protoimpl.X.MessageStringOf(x) } func (*StatisticsReply) ProtoMessage() {} func (x *StatisticsReply) ProtoReflect() protoreflect.Message { mi := &file_info_proto_msgTypes[5] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use StatisticsReply.ProtoReflect.Descriptor instead. func (*StatisticsReply) Descriptor() ([]byte, []int) { return file_info_proto_rawDescGZIP(), []int{5} } func (x *StatisticsReply) GetData() map[string]int64 { if x != nil { return x.Data } return nil } var File_info_proto protoreflect.FileDescriptor const file_info_proto_rawDesc = "" + "\n" + "\n" + "info.proto\x12\bpassport\x1a\fblocks.proto\"\x87\x01\n" + "\vBindRequest\x12\x16\n" + "\x06action\x18\x01 \x01(\tR\x06action\x12\x14\n" + "\x05phone\x18\x02 \x01(\tR\x05phone\x12\x12\n" + "\x04code\x18\x03 \x01(\tR\x04code\x12\x1a\n" + "\bpassword\x18\x04 \x01(\tR\bpassword\x12\x1a\n" + "\bnickname\x18\x05 \x01(\tR\bnickname\"\x92\x02\n" + "\fGetDataReply\x12\x18\n" + "\aaccount\x18\x01 \x01(\tR\aaccount\x12\x14\n" + "\x05phone\x18\x02 \x01(\tR\x05phone\x12\x1a\n" + "\bnickname\x18\x03 \x01(\tR\bnickname\x12\x16\n" + "\x06avatar\x18\x04 \x01(\tR\x06avatar\x12\x1a\n" + "\bbirthday\x18\x05 \x01(\tR\bbirthday\x12\x10\n" + "\x03sex\x18\x06 \x01(\x05R\x03sex\x12\x1a\n" + "\bprovince\x18\a \x01(\x05R\bprovince\x12\x12\n" + "\x04city\x18\b \x01(\x05R\x04city\x12\x12\n" + "\x04area\x18\t \x01(\x05R\x04area\x12\x12\n" + "\x04sign\x18\n" + " \x01(\tR\x04sign\x12\x18\n" + "\aapprove\x18\v \x01(\x05R\aapprove\"\xca\x01\n" + "\x0eSetDataRequest\x12\x1a\n" + "\bnickname\x18\x01 \x01(\tR\bnickname\x12\x16\n" + "\x06avatar\x18\x02 \x01(\tR\x06avatar\x12\x1a\n" + "\bbirthday\x18\x03 \x01(\tR\bbirthday\x12\x10\n" + "\x03sex\x18\x04 \x01(\x05R\x03sex\x12\x1a\n" + "\bprovince\x18\x05 \x01(\x05R\bprovince\x12\x12\n" + "\x04city\x18\x06 \x01(\x05R\x04city\x12\x12\n" + "\x04area\x18\a \x01(\x05R\x04area\x12\x12\n" + "\x04sign\x18\b \x01(\tR\x04sign\"Z\n" + "\x12SetPasswordRequest\x12!\n" + "\fold_password\x18\x03 \x01(\tR\voldPassword\x12!\n" + "\fnew_password\x18\x04 \x01(\tR\vnewPassword\")\n" + "\x11StatisticsRequest\x12\x14\n" + "\x05field\x18\x01 \x03(\tR\x05field\"\x83\x01\n" + "\x0fStatisticsReply\x127\n" + "\x04Data\x18\x01 \x03(\v2#.passport.StatisticsReply.DataEntryR\x04Data\x1a7\n" + "\tDataEntry\x12\x10\n" + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + "\x05value\x18\x02 \x01(\x03R\x05value:\x028\x012\xc0\x02\n" + "\x04Info\x126\n" + "\x04Bind\x12\x15.passport.BindRequest\x1a\x15.passport.StatusReply\"\x00\x124\n" + "\aGetData\x12\x0f.passport.Empty\x1a\x16.passport.GetDataReply\"\x00\x12<\n" + "\aSetData\x12\x18.passport.SetDataRequest\x1a\x15.passport.StatusReply\"\x00\x12D\n" + "\vSetPassword\x12\x1c.passport.SetPasswordRequest\x1a\x15.passport.StatusReply\"\x00\x12F\n" + "\n" + "Statistics\x12\x1b.passport.StatisticsRequest\x1a\x19.passport.StatisticsReply\"\x00B\fZ\n" + ".;passportb\x06proto3" var ( file_info_proto_rawDescOnce sync.Once file_info_proto_rawDescData []byte ) func file_info_proto_rawDescGZIP() []byte { file_info_proto_rawDescOnce.Do(func() { file_info_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_info_proto_rawDesc), len(file_info_proto_rawDesc))) }) return file_info_proto_rawDescData } var file_info_proto_msgTypes = make([]protoimpl.MessageInfo, 7) var file_info_proto_goTypes = []any{ (*BindRequest)(nil), // 0: passport.BindRequest (*GetDataReply)(nil), // 1: passport.GetDataReply (*SetDataRequest)(nil), // 2: passport.SetDataRequest (*SetPasswordRequest)(nil), // 3: passport.SetPasswordRequest (*StatisticsRequest)(nil), // 4: passport.StatisticsRequest (*StatisticsReply)(nil), // 5: passport.StatisticsReply nil, // 6: passport.StatisticsReply.DataEntry (*Empty)(nil), // 7: passport.Empty (*StatusReply)(nil), // 8: passport.StatusReply } var file_info_proto_depIdxs = []int32{ 6, // 0: passport.StatisticsReply.Data:type_name -> passport.StatisticsReply.DataEntry 0, // 1: passport.Info.Bind:input_type -> passport.BindRequest 7, // 2: passport.Info.GetData:input_type -> passport.Empty 2, // 3: passport.Info.SetData:input_type -> passport.SetDataRequest 3, // 4: passport.Info.SetPassword:input_type -> passport.SetPasswordRequest 4, // 5: passport.Info.Statistics:input_type -> passport.StatisticsRequest 8, // 6: passport.Info.Bind:output_type -> passport.StatusReply 1, // 7: passport.Info.GetData:output_type -> passport.GetDataReply 8, // 8: passport.Info.SetData:output_type -> passport.StatusReply 8, // 9: passport.Info.SetPassword:output_type -> passport.StatusReply 5, // 10: passport.Info.Statistics:output_type -> passport.StatisticsReply 6, // [6:11] is the sub-list for method output_type 1, // [1:6] 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_info_proto_init() } func file_info_proto_init() { if File_info_proto != nil { return } file_blocks_proto_init() type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_info_proto_rawDesc), len(file_info_proto_rawDesc)), NumEnums: 0, NumMessages: 7, NumExtensions: 0, NumServices: 1, }, GoTypes: file_info_proto_goTypes, DependencyIndexes: file_info_proto_depIdxs, MessageInfos: file_info_proto_msgTypes, }.Build() File_info_proto = out.File file_info_proto_goTypes = nil file_info_proto_depIdxs = nil }