277 lines
		
	
	
		
			8.6 KiB
		
	
	
	
		
			Go
		
	
	
	
			
		
		
	
	
			277 lines
		
	
	
		
			8.6 KiB
		
	
	
	
		
			Go
		
	
	
	
| // Code generated by protoc-gen-go. DO NOT EDIT.
 | ||
| // versions:
 | ||
| // 	protoc-gen-go v1.36.8
 | ||
| // 	protoc        (unknown)
 | ||
| // source: forget.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 VerifyRequest struct {
 | ||
| 	state         protoimpl.MessageState `protogen:"open.v1"`
 | ||
| 	Phone         string                 `protobuf:"bytes,1,opt,name=phone,proto3" json:"phone,omitempty"` //手机号
 | ||
| 	Code          string                 `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`   // 验证码
 | ||
| 	unknownFields protoimpl.UnknownFields
 | ||
| 	sizeCache     protoimpl.SizeCache
 | ||
| }
 | ||
| 
 | ||
| func (x *VerifyRequest) Reset() {
 | ||
| 	*x = VerifyRequest{}
 | ||
| 	mi := &file_forget_proto_msgTypes[0]
 | ||
| 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | ||
| 	ms.StoreMessageInfo(mi)
 | ||
| }
 | ||
| 
 | ||
| func (x *VerifyRequest) String() string {
 | ||
| 	return protoimpl.X.MessageStringOf(x)
 | ||
| }
 | ||
| 
 | ||
| func (*VerifyRequest) ProtoMessage() {}
 | ||
| 
 | ||
| func (x *VerifyRequest) ProtoReflect() protoreflect.Message {
 | ||
| 	mi := &file_forget_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 VerifyRequest.ProtoReflect.Descriptor instead.
 | ||
| func (*VerifyRequest) Descriptor() ([]byte, []int) {
 | ||
| 	return file_forget_proto_rawDescGZIP(), []int{0}
 | ||
| }
 | ||
| 
 | ||
| func (x *VerifyRequest) GetPhone() string {
 | ||
| 	if x != nil {
 | ||
| 		return x.Phone
 | ||
| 	}
 | ||
| 	return ""
 | ||
| }
 | ||
| 
 | ||
| func (x *VerifyRequest) GetCode() string {
 | ||
| 	if x != nil {
 | ||
| 		return x.Code
 | ||
| 	}
 | ||
| 	return ""
 | ||
| }
 | ||
| 
 | ||
| type ForgetResetRequest struct {
 | ||
| 	state         protoimpl.MessageState `protogen:"open.v1"`
 | ||
| 	Identity      string                 `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` //唯一码
 | ||
| 	Password      string                 `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // 密码
 | ||
| 	unknownFields protoimpl.UnknownFields
 | ||
| 	sizeCache     protoimpl.SizeCache
 | ||
| }
 | ||
| 
 | ||
| func (x *ForgetResetRequest) Reset() {
 | ||
| 	*x = ForgetResetRequest{}
 | ||
| 	mi := &file_forget_proto_msgTypes[1]
 | ||
| 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | ||
| 	ms.StoreMessageInfo(mi)
 | ||
| }
 | ||
| 
 | ||
| func (x *ForgetResetRequest) String() string {
 | ||
| 	return protoimpl.X.MessageStringOf(x)
 | ||
| }
 | ||
| 
 | ||
| func (*ForgetResetRequest) ProtoMessage() {}
 | ||
| 
 | ||
| func (x *ForgetResetRequest) ProtoReflect() protoreflect.Message {
 | ||
| 	mi := &file_forget_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 ForgetResetRequest.ProtoReflect.Descriptor instead.
 | ||
| func (*ForgetResetRequest) Descriptor() ([]byte, []int) {
 | ||
| 	return file_forget_proto_rawDescGZIP(), []int{1}
 | ||
| }
 | ||
| 
 | ||
| func (x *ForgetResetRequest) GetIdentity() string {
 | ||
| 	if x != nil {
 | ||
| 		return x.Identity
 | ||
| 	}
 | ||
| 	return ""
 | ||
| }
 | ||
| 
 | ||
| func (x *ForgetResetRequest) GetPassword() string {
 | ||
| 	if x != nil {
 | ||
| 		return x.Password
 | ||
| 	}
 | ||
| 	return ""
 | ||
| }
 | ||
| 
 | ||
| type ForgetReply struct {
 | ||
| 	state         protoimpl.MessageState `protogen:"open.v1"`
 | ||
| 	Identity      string                 `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"`                                                                       //用户唯一码
 | ||
| 	DataBind      string                 `protobuf:"bytes,2,opt,name=data_bind,json=dataBind,proto3" json:"data_bind,omitempty"`                                                       // 数据绑定的相关说明,PASS通过,NOPHONE没有绑定手机号,NOPWD没有设置密码,NOBIND没有手机号同时没有密码
 | ||
| 	Token         string                 `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"`                                                                             //用户凭证
 | ||
| 	Extend        map[string]string      `protobuf:"bytes,4,rep,name=extend,proto3" json:"extend,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` //扩展字段
 | ||
| 	unknownFields protoimpl.UnknownFields
 | ||
| 	sizeCache     protoimpl.SizeCache
 | ||
| }
 | ||
| 
 | ||
| func (x *ForgetReply) Reset() {
 | ||
| 	*x = ForgetReply{}
 | ||
| 	mi := &file_forget_proto_msgTypes[2]
 | ||
| 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | ||
| 	ms.StoreMessageInfo(mi)
 | ||
| }
 | ||
| 
 | ||
| func (x *ForgetReply) String() string {
 | ||
| 	return protoimpl.X.MessageStringOf(x)
 | ||
| }
 | ||
| 
 | ||
| func (*ForgetReply) ProtoMessage() {}
 | ||
| 
 | ||
| func (x *ForgetReply) ProtoReflect() protoreflect.Message {
 | ||
| 	mi := &file_forget_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 ForgetReply.ProtoReflect.Descriptor instead.
 | ||
| func (*ForgetReply) Descriptor() ([]byte, []int) {
 | ||
| 	return file_forget_proto_rawDescGZIP(), []int{2}
 | ||
| }
 | ||
| 
 | ||
| func (x *ForgetReply) GetIdentity() string {
 | ||
| 	if x != nil {
 | ||
| 		return x.Identity
 | ||
| 	}
 | ||
| 	return ""
 | ||
| }
 | ||
| 
 | ||
| func (x *ForgetReply) GetDataBind() string {
 | ||
| 	if x != nil {
 | ||
| 		return x.DataBind
 | ||
| 	}
 | ||
| 	return ""
 | ||
| }
 | ||
| 
 | ||
| func (x *ForgetReply) GetToken() string {
 | ||
| 	if x != nil {
 | ||
| 		return x.Token
 | ||
| 	}
 | ||
| 	return ""
 | ||
| }
 | ||
| 
 | ||
| func (x *ForgetReply) GetExtend() map[string]string {
 | ||
| 	if x != nil {
 | ||
| 		return x.Extend
 | ||
| 	}
 | ||
| 	return nil
 | ||
| }
 | ||
| 
 | ||
| var File_forget_proto protoreflect.FileDescriptor
 | ||
| 
 | ||
| const file_forget_proto_rawDesc = "" +
 | ||
| 	"\n" +
 | ||
| 	"\fforget.proto\x12\bpassport\x1a\fblocks.proto\"9\n" +
 | ||
| 	"\rVerifyRequest\x12\x14\n" +
 | ||
| 	"\x05phone\x18\x01 \x01(\tR\x05phone\x12\x12\n" +
 | ||
| 	"\x04code\x18\x02 \x01(\tR\x04code\"L\n" +
 | ||
| 	"\x12ForgetResetRequest\x12\x1a\n" +
 | ||
| 	"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x1a\n" +
 | ||
| 	"\bpassword\x18\x02 \x01(\tR\bpassword\"\xd2\x01\n" +
 | ||
| 	"\vForgetReply\x12\x1a\n" +
 | ||
| 	"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x1b\n" +
 | ||
| 	"\tdata_bind\x18\x02 \x01(\tR\bdataBind\x12\x14\n" +
 | ||
| 	"\x05token\x18\x03 \x01(\tR\x05token\x129\n" +
 | ||
| 	"\x06extend\x18\x04 \x03(\v2!.passport.ForgetReply.ExtendEntryR\x06extend\x1a9\n" +
 | ||
| 	"\vExtendEntry\x12\x10\n" +
 | ||
| 	"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
 | ||
| 	"\x05value\x18\x02 \x01(\tR\x05value:\x028\x012\x84\x01\n" +
 | ||
| 	"\x06Forget\x12:\n" +
 | ||
| 	"\x06Verify\x12\x17.passport.VerifyRequest\x1a\x15.passport.StatusReply\"\x00\x12>\n" +
 | ||
| 	"\x05Reset\x12\x1c.passport.ForgetResetRequest\x1a\x15.passport.ForgetReply\"\x00B\fZ\n" +
 | ||
| 	".;passportb\x06proto3"
 | ||
| 
 | ||
| var (
 | ||
| 	file_forget_proto_rawDescOnce sync.Once
 | ||
| 	file_forget_proto_rawDescData []byte
 | ||
| )
 | ||
| 
 | ||
| func file_forget_proto_rawDescGZIP() []byte {
 | ||
| 	file_forget_proto_rawDescOnce.Do(func() {
 | ||
| 		file_forget_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_forget_proto_rawDesc), len(file_forget_proto_rawDesc)))
 | ||
| 	})
 | ||
| 	return file_forget_proto_rawDescData
 | ||
| }
 | ||
| 
 | ||
| var file_forget_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
 | ||
| var file_forget_proto_goTypes = []any{
 | ||
| 	(*VerifyRequest)(nil),      // 0: passport.VerifyRequest
 | ||
| 	(*ForgetResetRequest)(nil), // 1: passport.ForgetResetRequest
 | ||
| 	(*ForgetReply)(nil),        // 2: passport.ForgetReply
 | ||
| 	nil,                        // 3: passport.ForgetReply.ExtendEntry
 | ||
| 	(*StatusReply)(nil),        // 4: passport.StatusReply
 | ||
| }
 | ||
| var file_forget_proto_depIdxs = []int32{
 | ||
| 	3, // 0: passport.ForgetReply.extend:type_name -> passport.ForgetReply.ExtendEntry
 | ||
| 	0, // 1: passport.Forget.Verify:input_type -> passport.VerifyRequest
 | ||
| 	1, // 2: passport.Forget.Reset:input_type -> passport.ForgetResetRequest
 | ||
| 	4, // 3: passport.Forget.Verify:output_type -> passport.StatusReply
 | ||
| 	2, // 4: passport.Forget.Reset:output_type -> passport.ForgetReply
 | ||
| 	3, // [3:5] is the sub-list for method output_type
 | ||
| 	1, // [1:3] 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_forget_proto_init() }
 | ||
| func file_forget_proto_init() {
 | ||
| 	if File_forget_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_forget_proto_rawDesc), len(file_forget_proto_rawDesc)),
 | ||
| 			NumEnums:      0,
 | ||
| 			NumMessages:   4,
 | ||
| 			NumExtensions: 0,
 | ||
| 			NumServices:   1,
 | ||
| 		},
 | ||
| 		GoTypes:           file_forget_proto_goTypes,
 | ||
| 		DependencyIndexes: file_forget_proto_depIdxs,
 | ||
| 		MessageInfos:      file_forget_proto_msgTypes,
 | ||
| 	}.Build()
 | ||
| 	File_forget_proto = out.File
 | ||
| 	file_forget_proto_goTypes = nil
 | ||
| 	file_forget_proto_depIdxs = nil
 | ||
| }
 |