// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.30.0 // protoc v4.23.2 // source: auth2.proto package auth2 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) ) // *auth操作类型 type OptType int32 const ( // *登录 OptType_login OptType = 0 // *注册 OptType_register OptType = 1 // *修改信息 OptType_changeinfo OptType = 2 // *重连,token续约 OptType_reconnect OptType = 3 // *映射其他账号 OptType_cross OptType = 4 ) // Enum value maps for OptType. var ( OptType_name = map[int32]string{ 0: "login", 1: "register", 2: "changeinfo", 3: "reconnect", 4: "cross", } OptType_value = map[string]int32{ "login": 0, "register": 1, "changeinfo": 2, "reconnect": 3, "cross": 4, } ) func (x OptType) Enum() *OptType { p := new(OptType) *p = x return p } func (x OptType) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (OptType) Descriptor() protoreflect.EnumDescriptor { return file_auth2_proto_enumTypes[0].Descriptor() } func (OptType) Type() protoreflect.EnumType { return &file_auth2_proto_enumTypes[0] } func (x OptType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use OptType.Descriptor instead. func (OptType) EnumDescriptor() ([]byte, []int) { return file_auth2_proto_rawDescGZIP(), []int{0} } // *账号状态status类型 type AccountStatus int32 const ( // *登录 AccountStatus_normal AccountStatus = 0 // *注册 AccountStatus_ban AccountStatus = 1 // *黑名单 AccountStatus_black AccountStatus = 2 // *白名单 AccountStatus_white AccountStatus = 3 ) // Enum value maps for AccountStatus. var ( AccountStatus_name = map[int32]string{ 0: "normal", 1: "ban", 2: "black", 3: "white", } AccountStatus_value = map[string]int32{ "normal": 0, "ban": 1, "black": 2, "white": 3, } ) func (x AccountStatus) Enum() *AccountStatus { p := new(AccountStatus) *p = x return p } func (x AccountStatus) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (AccountStatus) Descriptor() protoreflect.EnumDescriptor { return file_auth2_proto_enumTypes[1].Descriptor() } func (AccountStatus) Type() protoreflect.EnumType { return &file_auth2_proto_enumTypes[1] } func (x AccountStatus) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use AccountStatus.Descriptor instead. func (AccountStatus) EnumDescriptor() ([]byte, []int) { return file_auth2_proto_rawDescGZIP(), []int{1} } type AuthReq struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // *用户id Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` // *用户密码 Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // *用户账号 Account string `protobuf:"bytes,3,opt,name=account,proto3" json:"account,omitempty"` // *用户账号 Device string `protobuf:"bytes,4,opt,name=device,proto3" json:"device,omitempty"` // *登录游戏类型 Gametype string `protobuf:"bytes,6,opt,name=gametype,proto3" json:"gametype,omitempty"` // *用户设备系统,os-osVersion-platform Platform string `protobuf:"bytes,7,opt,name=platform,proto3" json:"platform,omitempty"` // *用户设备语言 Language string `protobuf:"bytes,8,opt,name=language,proto3" json:"language,omitempty"` // *用户设备唯一标识,绑定设备后可以通过设备标识找回账密 Deviceid string `protobuf:"bytes,9,opt,name=deviceid,proto3" json:"deviceid,omitempty"` // *用户可以绑定邮箱,绑定邮箱后可以通过邮箱找回账密 Email string `protobuf:"bytes,10,opt,name=email,proto3" json:"email,omitempty"` // *用户可以绑定手机号,绑定手机号码后可以通过手机号码找回账密 Phone string `protobuf:"bytes,11,opt,name=phone,proto3" json:"phone,omitempty"` // *消息推送令牌 Fcmtoken string `protobuf:"bytes,12,opt,name=fcmtoken,proto3" json:"fcmtoken,omitempty"` // *运营商(渠道)标识 Ops string `protobuf:"bytes,14,opt,name=ops,proto3" json:"ops,omitempty"` // *运营商(渠道)令牌,由运营商token创建的账号,可以通过令牌找回账密 Opstoken string `protobuf:"bytes,15,opt,name=opstoken,proto3" json:"opstoken,omitempty"` // *运营商(渠道)启动参数 数据库中的value为json格式,传参需要序列化 Opsparams string `protobuf:"bytes,16,opt,name=opsparams,proto3" json:"opsparams,omitempty"` // *昵称 Nickname string `protobuf:"bytes,20,opt,name=nickname,proto3" json:"nickname,omitempty"` // *皮肤 Skin string `protobuf:"bytes,21,opt,name=skin,proto3" json:"skin,omitempty"` // *头像 Photo string `protobuf:"bytes,22,opt,name=photo,proto3" json:"photo,omitempty"` // *备注 Notes string `protobuf:"bytes,27,opt,name=notes,proto3" json:"notes,omitempty"` // *来源 Origin string `protobuf:"bytes,28,opt,name=origin,proto3" json:"origin,omitempty"` // *游戏配置json Options string `protobuf:"bytes,29,opt,name=options,proto3" json:"options,omitempty"` // *操作类型,是否新注册 Opt OptType `protobuf:"varint,30,opt,name=opt,proto3,enum=auth2.OptType" json:"opt,omitempty"` // *运营商用户唯一id Opid string `protobuf:"bytes,31,opt,name=opid,proto3" json:"opid,omitempty"` // *运营商用户token生成时间 OpTime uint64 `protobuf:"varint,32,opt,name=opTime,proto3" json:"opTime,omitempty"` } func (x *AuthReq) Reset() { *x = AuthReq{} if protoimpl.UnsafeEnabled { mi := &file_auth2_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *AuthReq) String() string { return protoimpl.X.MessageStringOf(x) } func (*AuthReq) ProtoMessage() {} func (x *AuthReq) ProtoReflect() protoreflect.Message { mi := &file_auth2_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 AuthReq.ProtoReflect.Descriptor instead. func (*AuthReq) Descriptor() ([]byte, []int) { return file_auth2_proto_rawDescGZIP(), []int{0} } func (x *AuthReq) GetUid() string { if x != nil { return x.Uid } return "" } func (x *AuthReq) GetPassword() string { if x != nil { return x.Password } return "" } func (x *AuthReq) GetAccount() string { if x != nil { return x.Account } return "" } func (x *AuthReq) GetDevice() string { if x != nil { return x.Device } return "" } func (x *AuthReq) GetGametype() string { if x != nil { return x.Gametype } return "" } func (x *AuthReq) GetPlatform() string { if x != nil { return x.Platform } return "" } func (x *AuthReq) GetLanguage() string { if x != nil { return x.Language } return "" } func (x *AuthReq) GetDeviceid() string { if x != nil { return x.Deviceid } return "" } func (x *AuthReq) GetEmail() string { if x != nil { return x.Email } return "" } func (x *AuthReq) GetPhone() string { if x != nil { return x.Phone } return "" } func (x *AuthReq) GetFcmtoken() string { if x != nil { return x.Fcmtoken } return "" } func (x *AuthReq) GetOps() string { if x != nil { return x.Ops } return "" } func (x *AuthReq) GetOpstoken() string { if x != nil { return x.Opstoken } return "" } func (x *AuthReq) GetOpsparams() string { if x != nil { return x.Opsparams } return "" } func (x *AuthReq) GetNickname() string { if x != nil { return x.Nickname } return "" } func (x *AuthReq) GetSkin() string { if x != nil { return x.Skin } return "" } func (x *AuthReq) GetPhoto() string { if x != nil { return x.Photo } return "" } func (x *AuthReq) GetNotes() string { if x != nil { return x.Notes } return "" } func (x *AuthReq) GetOrigin() string { if x != nil { return x.Origin } return "" } func (x *AuthReq) GetOptions() string { if x != nil { return x.Options } return "" } func (x *AuthReq) GetOpt() OptType { if x != nil { return x.Opt } return OptType_login } func (x *AuthReq) GetOpid() string { if x != nil { return x.Opid } return "" } func (x *AuthReq) GetOpTime() uint64 { if x != nil { return x.OpTime } return 0 } type AuthRet struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // *用户信息 User *AuthReq `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // *用户登录ip Ip string `protobuf:"bytes,5,opt,name=ip,proto3" json:"ip,omitempty"` // *用户地理位置 Location string `protobuf:"bytes,13,opt,name=location,proto3" json:"location,omitempty"` // *vip Vip int32 `protobuf:"varint,23,opt,name=vip,proto3" json:"vip,omitempty"` // *用户角色权限 Role int32 `protobuf:"varint,41,opt,name=role,proto3" json:"role,omitempty"` // *用户角色权限 Status AccountStatus `protobuf:"varint,42,opt,name=status,proto3,enum=auth2.AccountStatus" json:"status,omitempty"` // *是否新注册 Isregister bool `protobuf:"varint,30,opt,name=isregister,proto3" json:"isregister,omitempty"` // *JWT-token Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` // *错误码,为空时表示成功 ErrCode string `protobuf:"bytes,9,opt,name=errCode,proto3" json:"errCode,omitempty"` } func (x *AuthRet) Reset() { *x = AuthRet{} if protoimpl.UnsafeEnabled { mi := &file_auth2_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *AuthRet) String() string { return protoimpl.X.MessageStringOf(x) } func (*AuthRet) ProtoMessage() {} func (x *AuthRet) ProtoReflect() protoreflect.Message { mi := &file_auth2_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 AuthRet.ProtoReflect.Descriptor instead. func (*AuthRet) Descriptor() ([]byte, []int) { return file_auth2_proto_rawDescGZIP(), []int{1} } func (x *AuthRet) GetUser() *AuthReq { if x != nil { return x.User } return nil } func (x *AuthRet) GetIp() string { if x != nil { return x.Ip } return "" } func (x *AuthRet) GetLocation() string { if x != nil { return x.Location } return "" } func (x *AuthRet) GetVip() int32 { if x != nil { return x.Vip } return 0 } func (x *AuthRet) GetRole() int32 { if x != nil { return x.Role } return 0 } func (x *AuthRet) GetStatus() AccountStatus { if x != nil { return x.Status } return AccountStatus_normal } func (x *AuthRet) GetIsregister() bool { if x != nil { return x.Isregister } return false } func (x *AuthRet) GetToken() string { if x != nil { return x.Token } return "" } func (x *AuthRet) GetErrCode() string { if x != nil { return x.ErrCode } return "" } type UpdateReq struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } func (x *UpdateReq) Reset() { *x = UpdateReq{} if protoimpl.UnsafeEnabled { mi := &file_auth2_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *UpdateReq) String() string { return protoimpl.X.MessageStringOf(x) } func (*UpdateReq) ProtoMessage() {} func (x *UpdateReq) ProtoReflect() protoreflect.Message { mi := &file_auth2_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 UpdateReq.ProtoReflect.Descriptor instead. func (*UpdateReq) Descriptor() ([]byte, []int) { return file_auth2_proto_rawDescGZIP(), []int{2} } type UpdateRet struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` } func (x *UpdateRet) Reset() { *x = UpdateRet{} if protoimpl.UnsafeEnabled { mi := &file_auth2_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *UpdateRet) String() string { return protoimpl.X.MessageStringOf(x) } func (*UpdateRet) ProtoMessage() {} func (x *UpdateRet) ProtoReflect() protoreflect.Message { mi := &file_auth2_proto_msgTypes[3] 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 UpdateRet.ProtoReflect.Descriptor instead. func (*UpdateRet) Descriptor() ([]byte, []int) { return file_auth2_proto_rawDescGZIP(), []int{3} } func (x *UpdateRet) GetSuccess() bool { if x != nil { return x.Success } return false } var File_auth2_proto protoreflect.FileDescriptor var file_auth2_proto_rawDesc = []byte{ 0x0a, 0x0b, 0x61, 0x75, 0x74, 0x68, 0x32, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x61, 0x75, 0x74, 0x68, 0x32, 0x22, 0xc9, 0x04, 0x0a, 0x07, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x71, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x67, 0x61, 0x6d, 0x65, 0x74, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x67, 0x61, 0x6d, 0x65, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x69, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x63, 0x6d, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x63, 0x6d, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x6f, 0x70, 0x73, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6f, 0x70, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x6f, 0x70, 0x73, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6f, 0x70, 0x73, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x6f, 0x70, 0x73, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6f, 0x70, 0x73, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x14, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x6b, 0x69, 0x6e, 0x18, 0x15, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x73, 0x6b, 0x69, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x68, 0x6f, 0x74, 0x6f, 0x18, 0x16, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x68, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x1b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x18, 0x1c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x1d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x20, 0x0a, 0x03, 0x6f, 0x70, 0x74, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0e, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x32, 0x2e, 0x4f, 0x70, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x03, 0x6f, 0x70, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6f, 0x70, 0x69, 0x64, 0x18, 0x1f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6f, 0x70, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x70, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x20, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x6f, 0x70, 0x54, 0x69, 0x6d, 0x65, 0x22, 0xfd, 0x01, 0x0a, 0x07, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x74, 0x12, 0x22, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x32, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x71, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x70, 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x76, 0x69, 0x70, 0x18, 0x17, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x76, 0x69, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x29, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, 0x2c, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x2a, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x32, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x69, 0x73, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x69, 0x73, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x72, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x65, 0x72, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x22, 0x0b, 0x0a, 0x09, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x22, 0x25, 0x0a, 0x09, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x2a, 0x4c, 0x0a, 0x07, 0x4f, 0x70, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x09, 0x0a, 0x05, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x69, 0x6e, 0x66, 0x6f, 0x10, 0x02, 0x12, 0x0d, 0x0a, 0x09, 0x72, 0x65, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x10, 0x03, 0x12, 0x09, 0x0a, 0x05, 0x63, 0x72, 0x6f, 0x73, 0x73, 0x10, 0x04, 0x2a, 0x3a, 0x0a, 0x0d, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0a, 0x0a, 0x06, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x62, 0x61, 0x6e, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x62, 0x6c, 0x61, 0x63, 0x6b, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x77, 0x68, 0x69, 0x74, 0x65, 0x10, 0x03, 0x32, 0x30, 0x0a, 0x04, 0x41, 0x75, 0x74, 0x68, 0x12, 0x28, 0x0a, 0x04, 0x41, 0x75, 0x74, 0x68, 0x12, 0x0e, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x32, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x71, 0x1a, 0x0e, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x32, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x74, 0x22, 0x00, 0x42, 0x0a, 0x5a, 0x08, 0x70, 0x62, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( file_auth2_proto_rawDescOnce sync.Once file_auth2_proto_rawDescData = file_auth2_proto_rawDesc ) func file_auth2_proto_rawDescGZIP() []byte { file_auth2_proto_rawDescOnce.Do(func() { file_auth2_proto_rawDescData = protoimpl.X.CompressGZIP(file_auth2_proto_rawDescData) }) return file_auth2_proto_rawDescData } var file_auth2_proto_enumTypes = make([]protoimpl.EnumInfo, 2) var file_auth2_proto_msgTypes = make([]protoimpl.MessageInfo, 4) var file_auth2_proto_goTypes = []interface{}{ (OptType)(0), // 0: auth2.OptType (AccountStatus)(0), // 1: auth2.AccountStatus (*AuthReq)(nil), // 2: auth2.AuthReq (*AuthRet)(nil), // 3: auth2.AuthRet (*UpdateReq)(nil), // 4: auth2.UpdateReq (*UpdateRet)(nil), // 5: auth2.UpdateRet } var file_auth2_proto_depIdxs = []int32{ 0, // 0: auth2.AuthReq.opt:type_name -> auth2.OptType 2, // 1: auth2.AuthRet.user:type_name -> auth2.AuthReq 1, // 2: auth2.AuthRet.status:type_name -> auth2.AccountStatus 2, // 3: auth2.Auth.Auth:input_type -> auth2.AuthReq 3, // 4: auth2.Auth.Auth:output_type -> auth2.AuthRet 4, // [4:5] is the sub-list for method output_type 3, // [3:4] is the sub-list for method input_type 3, // [3:3] is the sub-list for extension type_name 3, // [3:3] is the sub-list for extension extendee 0, // [0:3] is the sub-list for field type_name } func init() { file_auth2_proto_init() } func file_auth2_proto_init() { if File_auth2_proto != nil { return } if !protoimpl.UnsafeEnabled { file_auth2_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*AuthReq); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_auth2_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*AuthRet); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_auth2_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UpdateReq); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_auth2_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UpdateRet); 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_auth2_proto_rawDesc, NumEnums: 2, NumMessages: 4, NumExtensions: 0, NumServices: 1, }, GoTypes: file_auth2_proto_goTypes, DependencyIndexes: file_auth2_proto_depIdxs, EnumInfos: file_auth2_proto_enumTypes, MessageInfos: file_auth2_proto_msgTypes, }.Build() File_auth2_proto = out.File file_auth2_proto_rawDesc = nil file_auth2_proto_goTypes = nil file_auth2_proto_depIdxs = nil }