2250 lines
76 KiB
Go
2250 lines
76 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||
// versions:
|
||
// protoc-gen-go v1.36.11
|
||
// protoc v5.29.2
|
||
// source: proto/user/v1/auth.proto
|
||
|
||
package userv1
|
||
|
||
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)
|
||
)
|
||
|
||
// LoginPasswordRequest 使用当前 display_user_id 和已设置密码登录。
|
||
type LoginPasswordRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Meta *RequestMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
|
||
DisplayUserId string `protobuf:"bytes,2,opt,name=display_user_id,json=displayUserId,proto3" json:"display_user_id,omitempty"`
|
||
Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *LoginPasswordRequest) Reset() {
|
||
*x = LoginPasswordRequest{}
|
||
mi := &file_proto_user_v1_auth_proto_msgTypes[0]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *LoginPasswordRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*LoginPasswordRequest) ProtoMessage() {}
|
||
|
||
func (x *LoginPasswordRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_proto_user_v1_auth_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 LoginPasswordRequest.ProtoReflect.Descriptor instead.
|
||
func (*LoginPasswordRequest) Descriptor() ([]byte, []int) {
|
||
return file_proto_user_v1_auth_proto_rawDescGZIP(), []int{0}
|
||
}
|
||
|
||
func (x *LoginPasswordRequest) GetMeta() *RequestMeta {
|
||
if x != nil {
|
||
return x.Meta
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *LoginPasswordRequest) GetDisplayUserId() string {
|
||
if x != nil {
|
||
return x.DisplayUserId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *LoginPasswordRequest) GetPassword() string {
|
||
if x != nil {
|
||
return x.Password
|
||
}
|
||
return ""
|
||
}
|
||
|
||
// LoginThirdPartyRequest 使用三方凭证登录或注册。
|
||
type LoginThirdPartyRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Meta *RequestMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
|
||
Provider string `protobuf:"bytes,2,opt,name=provider,proto3" json:"provider,omitempty"`
|
||
Credential string `protobuf:"bytes,3,opt,name=credential,proto3" json:"credential,omitempty"`
|
||
Username string `protobuf:"bytes,4,opt,name=username,proto3" json:"username,omitempty"`
|
||
Gender string `protobuf:"bytes,5,opt,name=gender,proto3" json:"gender,omitempty"`
|
||
Country string `protobuf:"bytes,6,opt,name=country,proto3" json:"country,omitempty"`
|
||
InviteCode string `protobuf:"bytes,7,opt,name=invite_code,json=inviteCode,proto3" json:"invite_code,omitempty"`
|
||
DeviceId string `protobuf:"bytes,8,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
|
||
Device string `protobuf:"bytes,9,opt,name=device,proto3" json:"device,omitempty"`
|
||
Avatar string `protobuf:"bytes,10,opt,name=avatar,proto3" json:"avatar,omitempty"`
|
||
Birth string `protobuf:"bytes,11,opt,name=birth,proto3" json:"birth,omitempty"`
|
||
AppVersion string `protobuf:"bytes,12,opt,name=app_version,json=appVersion,proto3" json:"app_version,omitempty"`
|
||
Source string `protobuf:"bytes,13,opt,name=source,proto3" json:"source,omitempty"`
|
||
Platform string `protobuf:"bytes,14,opt,name=platform,proto3" json:"platform,omitempty"`
|
||
Language string `protobuf:"bytes,15,opt,name=language,proto3" json:"language,omitempty"`
|
||
OsVersion string `protobuf:"bytes,16,opt,name=os_version,json=osVersion,proto3" json:"os_version,omitempty"`
|
||
BuildNumber string `protobuf:"bytes,17,opt,name=build_number,json=buildNumber,proto3" json:"build_number,omitempty"`
|
||
Timezone string `protobuf:"bytes,18,opt,name=timezone,proto3" json:"timezone,omitempty"`
|
||
InstallChannel string `protobuf:"bytes,19,opt,name=install_channel,json=installChannel,proto3" json:"install_channel,omitempty"`
|
||
Campaign string `protobuf:"bytes,20,opt,name=campaign,proto3" json:"campaign,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *LoginThirdPartyRequest) Reset() {
|
||
*x = LoginThirdPartyRequest{}
|
||
mi := &file_proto_user_v1_auth_proto_msgTypes[1]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *LoginThirdPartyRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*LoginThirdPartyRequest) ProtoMessage() {}
|
||
|
||
func (x *LoginThirdPartyRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_proto_user_v1_auth_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 LoginThirdPartyRequest.ProtoReflect.Descriptor instead.
|
||
func (*LoginThirdPartyRequest) Descriptor() ([]byte, []int) {
|
||
return file_proto_user_v1_auth_proto_rawDescGZIP(), []int{1}
|
||
}
|
||
|
||
func (x *LoginThirdPartyRequest) GetMeta() *RequestMeta {
|
||
if x != nil {
|
||
return x.Meta
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *LoginThirdPartyRequest) GetProvider() string {
|
||
if x != nil {
|
||
return x.Provider
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *LoginThirdPartyRequest) GetCredential() string {
|
||
if x != nil {
|
||
return x.Credential
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *LoginThirdPartyRequest) GetUsername() string {
|
||
if x != nil {
|
||
return x.Username
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *LoginThirdPartyRequest) GetGender() string {
|
||
if x != nil {
|
||
return x.Gender
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *LoginThirdPartyRequest) GetCountry() string {
|
||
if x != nil {
|
||
return x.Country
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *LoginThirdPartyRequest) GetInviteCode() string {
|
||
if x != nil {
|
||
return x.InviteCode
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *LoginThirdPartyRequest) GetDeviceId() string {
|
||
if x != nil {
|
||
return x.DeviceId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *LoginThirdPartyRequest) GetDevice() string {
|
||
if x != nil {
|
||
return x.Device
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *LoginThirdPartyRequest) GetAvatar() string {
|
||
if x != nil {
|
||
return x.Avatar
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *LoginThirdPartyRequest) GetBirth() string {
|
||
if x != nil {
|
||
return x.Birth
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *LoginThirdPartyRequest) GetAppVersion() string {
|
||
if x != nil {
|
||
return x.AppVersion
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *LoginThirdPartyRequest) GetSource() string {
|
||
if x != nil {
|
||
return x.Source
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *LoginThirdPartyRequest) GetPlatform() string {
|
||
if x != nil {
|
||
return x.Platform
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *LoginThirdPartyRequest) GetLanguage() string {
|
||
if x != nil {
|
||
return x.Language
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *LoginThirdPartyRequest) GetOsVersion() string {
|
||
if x != nil {
|
||
return x.OsVersion
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *LoginThirdPartyRequest) GetBuildNumber() string {
|
||
if x != nil {
|
||
return x.BuildNumber
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *LoginThirdPartyRequest) GetTimezone() string {
|
||
if x != nil {
|
||
return x.Timezone
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *LoginThirdPartyRequest) GetInstallChannel() string {
|
||
if x != nil {
|
||
return x.InstallChannel
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *LoginThirdPartyRequest) GetCampaign() string {
|
||
if x != nil {
|
||
return x.Campaign
|
||
}
|
||
return ""
|
||
}
|
||
|
||
// RegisterThirdPartyRequest 是资料页完成时使用的三方注册入口。
|
||
// 它不会先返回 profile_required 登录态,而是在服务端一次性校验 credential、写用户资料并签发完整 session。
|
||
type RegisterThirdPartyRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Meta *RequestMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
|
||
Provider string `protobuf:"bytes,2,opt,name=provider,proto3" json:"provider,omitempty"`
|
||
Credential string `protobuf:"bytes,3,opt,name=credential,proto3" json:"credential,omitempty"`
|
||
DeviceId string `protobuf:"bytes,4,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
|
||
Username string `protobuf:"bytes,5,opt,name=username,proto3" json:"username,omitempty"`
|
||
Avatar string `protobuf:"bytes,6,opt,name=avatar,proto3" json:"avatar,omitempty"`
|
||
Gender string `protobuf:"bytes,7,opt,name=gender,proto3" json:"gender,omitempty"`
|
||
Country string `protobuf:"bytes,8,opt,name=country,proto3" json:"country,omitempty"`
|
||
InviteCode string `protobuf:"bytes,9,opt,name=invite_code,json=inviteCode,proto3" json:"invite_code,omitempty"`
|
||
Device string `protobuf:"bytes,10,opt,name=device,proto3" json:"device,omitempty"`
|
||
OsVersion string `protobuf:"bytes,11,opt,name=os_version,json=osVersion,proto3" json:"os_version,omitempty"`
|
||
Birth string `protobuf:"bytes,12,opt,name=birth,proto3" json:"birth,omitempty"`
|
||
AppVersion string `protobuf:"bytes,13,opt,name=app_version,json=appVersion,proto3" json:"app_version,omitempty"`
|
||
BuildNumber string `protobuf:"bytes,14,opt,name=build_number,json=buildNumber,proto3" json:"build_number,omitempty"`
|
||
Source string `protobuf:"bytes,15,opt,name=source,proto3" json:"source,omitempty"`
|
||
InstallChannel string `protobuf:"bytes,16,opt,name=install_channel,json=installChannel,proto3" json:"install_channel,omitempty"`
|
||
Campaign string `protobuf:"bytes,17,opt,name=campaign,proto3" json:"campaign,omitempty"`
|
||
Platform string `protobuf:"bytes,18,opt,name=platform,proto3" json:"platform,omitempty"`
|
||
Language string `protobuf:"bytes,19,opt,name=language,proto3" json:"language,omitempty"`
|
||
Timezone string `protobuf:"bytes,20,opt,name=timezone,proto3" json:"timezone,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *RegisterThirdPartyRequest) Reset() {
|
||
*x = RegisterThirdPartyRequest{}
|
||
mi := &file_proto_user_v1_auth_proto_msgTypes[2]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *RegisterThirdPartyRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*RegisterThirdPartyRequest) ProtoMessage() {}
|
||
|
||
func (x *RegisterThirdPartyRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_proto_user_v1_auth_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 RegisterThirdPartyRequest.ProtoReflect.Descriptor instead.
|
||
func (*RegisterThirdPartyRequest) Descriptor() ([]byte, []int) {
|
||
return file_proto_user_v1_auth_proto_rawDescGZIP(), []int{2}
|
||
}
|
||
|
||
func (x *RegisterThirdPartyRequest) GetMeta() *RequestMeta {
|
||
if x != nil {
|
||
return x.Meta
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *RegisterThirdPartyRequest) GetProvider() string {
|
||
if x != nil {
|
||
return x.Provider
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *RegisterThirdPartyRequest) GetCredential() string {
|
||
if x != nil {
|
||
return x.Credential
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *RegisterThirdPartyRequest) GetDeviceId() string {
|
||
if x != nil {
|
||
return x.DeviceId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *RegisterThirdPartyRequest) GetUsername() string {
|
||
if x != nil {
|
||
return x.Username
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *RegisterThirdPartyRequest) GetAvatar() string {
|
||
if x != nil {
|
||
return x.Avatar
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *RegisterThirdPartyRequest) GetGender() string {
|
||
if x != nil {
|
||
return x.Gender
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *RegisterThirdPartyRequest) GetCountry() string {
|
||
if x != nil {
|
||
return x.Country
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *RegisterThirdPartyRequest) GetInviteCode() string {
|
||
if x != nil {
|
||
return x.InviteCode
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *RegisterThirdPartyRequest) GetDevice() string {
|
||
if x != nil {
|
||
return x.Device
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *RegisterThirdPartyRequest) GetOsVersion() string {
|
||
if x != nil {
|
||
return x.OsVersion
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *RegisterThirdPartyRequest) GetBirth() string {
|
||
if x != nil {
|
||
return x.Birth
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *RegisterThirdPartyRequest) GetAppVersion() string {
|
||
if x != nil {
|
||
return x.AppVersion
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *RegisterThirdPartyRequest) GetBuildNumber() string {
|
||
if x != nil {
|
||
return x.BuildNumber
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *RegisterThirdPartyRequest) GetSource() string {
|
||
if x != nil {
|
||
return x.Source
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *RegisterThirdPartyRequest) GetInstallChannel() string {
|
||
if x != nil {
|
||
return x.InstallChannel
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *RegisterThirdPartyRequest) GetCampaign() string {
|
||
if x != nil {
|
||
return x.Campaign
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *RegisterThirdPartyRequest) GetPlatform() string {
|
||
if x != nil {
|
||
return x.Platform
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *RegisterThirdPartyRequest) GetLanguage() string {
|
||
if x != nil {
|
||
return x.Language
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *RegisterThirdPartyRequest) GetTimezone() string {
|
||
if x != nil {
|
||
return x.Timezone
|
||
}
|
||
return ""
|
||
}
|
||
|
||
// CheckThirdPartyRegisteredRequest 只校验三方凭证并判断是否已有完整注册用户。
|
||
type CheckThirdPartyRegisteredRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Meta *RequestMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
|
||
Provider string `protobuf:"bytes,2,opt,name=provider,proto3" json:"provider,omitempty"`
|
||
Credential string `protobuf:"bytes,3,opt,name=credential,proto3" json:"credential,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *CheckThirdPartyRegisteredRequest) Reset() {
|
||
*x = CheckThirdPartyRegisteredRequest{}
|
||
mi := &file_proto_user_v1_auth_proto_msgTypes[3]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *CheckThirdPartyRegisteredRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*CheckThirdPartyRegisteredRequest) ProtoMessage() {}
|
||
|
||
func (x *CheckThirdPartyRegisteredRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_proto_user_v1_auth_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 CheckThirdPartyRegisteredRequest.ProtoReflect.Descriptor instead.
|
||
func (*CheckThirdPartyRegisteredRequest) Descriptor() ([]byte, []int) {
|
||
return file_proto_user_v1_auth_proto_rawDescGZIP(), []int{3}
|
||
}
|
||
|
||
func (x *CheckThirdPartyRegisteredRequest) GetMeta() *RequestMeta {
|
||
if x != nil {
|
||
return x.Meta
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *CheckThirdPartyRegisteredRequest) GetProvider() string {
|
||
if x != nil {
|
||
return x.Provider
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *CheckThirdPartyRegisteredRequest) GetCredential() string {
|
||
if x != nil {
|
||
return x.Credential
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type CheckThirdPartyRegisteredResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Registered bool `protobuf:"varint,1,opt,name=registered,proto3" json:"registered,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *CheckThirdPartyRegisteredResponse) Reset() {
|
||
*x = CheckThirdPartyRegisteredResponse{}
|
||
mi := &file_proto_user_v1_auth_proto_msgTypes[4]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *CheckThirdPartyRegisteredResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*CheckThirdPartyRegisteredResponse) ProtoMessage() {}
|
||
|
||
func (x *CheckThirdPartyRegisteredResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_proto_user_v1_auth_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 CheckThirdPartyRegisteredResponse.ProtoReflect.Descriptor instead.
|
||
func (*CheckThirdPartyRegisteredResponse) Descriptor() ([]byte, []int) {
|
||
return file_proto_user_v1_auth_proto_rawDescGZIP(), []int{4}
|
||
}
|
||
|
||
func (x *CheckThirdPartyRegisteredResponse) GetRegistered() bool {
|
||
if x != nil {
|
||
return x.Registered
|
||
}
|
||
return false
|
||
}
|
||
|
||
// AuthResponse 返回标准认证令牌。
|
||
type AuthResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Token *AuthToken `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
|
||
IsNewUser bool `protobuf:"varint,2,opt,name=is_new_user,json=isNewUser,proto3" json:"is_new_user,omitempty"`
|
||
ProfileCompleted bool `protobuf:"varint,3,opt,name=profile_completed,json=profileCompleted,proto3" json:"profile_completed,omitempty"`
|
||
OnboardingStatus string `protobuf:"bytes,4,opt,name=onboarding_status,json=onboardingStatus,proto3" json:"onboarding_status,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *AuthResponse) Reset() {
|
||
*x = AuthResponse{}
|
||
mi := &file_proto_user_v1_auth_proto_msgTypes[5]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *AuthResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*AuthResponse) ProtoMessage() {}
|
||
|
||
func (x *AuthResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_proto_user_v1_auth_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 AuthResponse.ProtoReflect.Descriptor instead.
|
||
func (*AuthResponse) Descriptor() ([]byte, []int) {
|
||
return file_proto_user_v1_auth_proto_rawDescGZIP(), []int{5}
|
||
}
|
||
|
||
func (x *AuthResponse) GetToken() *AuthToken {
|
||
if x != nil {
|
||
return x.Token
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *AuthResponse) GetIsNewUser() bool {
|
||
if x != nil {
|
||
return x.IsNewUser
|
||
}
|
||
return false
|
||
}
|
||
|
||
func (x *AuthResponse) GetProfileCompleted() bool {
|
||
if x != nil {
|
||
return x.ProfileCompleted
|
||
}
|
||
return false
|
||
}
|
||
|
||
func (x *AuthResponse) GetOnboardingStatus() string {
|
||
if x != nil {
|
||
return x.OnboardingStatus
|
||
}
|
||
return ""
|
||
}
|
||
|
||
// SetPasswordRequest 为已经三方登录的用户首次设置密码。
|
||
type SetPasswordRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Meta *RequestMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
|
||
UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
||
Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *SetPasswordRequest) Reset() {
|
||
*x = SetPasswordRequest{}
|
||
mi := &file_proto_user_v1_auth_proto_msgTypes[6]
|
||
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_proto_user_v1_auth_proto_msgTypes[6]
|
||
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_proto_user_v1_auth_proto_rawDescGZIP(), []int{6}
|
||
}
|
||
|
||
func (x *SetPasswordRequest) GetMeta() *RequestMeta {
|
||
if x != nil {
|
||
return x.Meta
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *SetPasswordRequest) GetUserId() int64 {
|
||
if x != nil {
|
||
return x.UserId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *SetPasswordRequest) GetPassword() string {
|
||
if x != nil {
|
||
return x.Password
|
||
}
|
||
return ""
|
||
}
|
||
|
||
// SetPasswordResponse 返回密码是否已经成功设置。
|
||
type SetPasswordResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
PasswordSet bool `protobuf:"varint,1,opt,name=password_set,json=passwordSet,proto3" json:"password_set,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *SetPasswordResponse) Reset() {
|
||
*x = SetPasswordResponse{}
|
||
mi := &file_proto_user_v1_auth_proto_msgTypes[7]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *SetPasswordResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*SetPasswordResponse) ProtoMessage() {}
|
||
|
||
func (x *SetPasswordResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_proto_user_v1_auth_proto_msgTypes[7]
|
||
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 SetPasswordResponse.ProtoReflect.Descriptor instead.
|
||
func (*SetPasswordResponse) Descriptor() ([]byte, []int) {
|
||
return file_proto_user_v1_auth_proto_rawDescGZIP(), []int{7}
|
||
}
|
||
|
||
func (x *SetPasswordResponse) GetPasswordSet() bool {
|
||
if x != nil {
|
||
return x.PasswordSet
|
||
}
|
||
return false
|
||
}
|
||
|
||
// QuickCreateAccountRequest 为后台快速创建完整资料账号;source=game_robot 时账号不可登录。
|
||
type QuickCreateAccountRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Meta *RequestMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
|
||
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
|
||
Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"`
|
||
Avatar string `protobuf:"bytes,4,opt,name=avatar,proto3" json:"avatar,omitempty"`
|
||
Gender string `protobuf:"bytes,5,opt,name=gender,proto3" json:"gender,omitempty"`
|
||
Country string `protobuf:"bytes,6,opt,name=country,proto3" json:"country,omitempty"`
|
||
InviteCode string `protobuf:"bytes,7,opt,name=invite_code,json=inviteCode,proto3" json:"invite_code,omitempty"`
|
||
DeviceId string `protobuf:"bytes,8,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
|
||
Device string `protobuf:"bytes,9,opt,name=device,proto3" json:"device,omitempty"`
|
||
OsVersion string `protobuf:"bytes,10,opt,name=os_version,json=osVersion,proto3" json:"os_version,omitempty"`
|
||
Birth string `protobuf:"bytes,11,opt,name=birth,proto3" json:"birth,omitempty"`
|
||
AppVersion string `protobuf:"bytes,12,opt,name=app_version,json=appVersion,proto3" json:"app_version,omitempty"`
|
||
BuildNumber string `protobuf:"bytes,13,opt,name=build_number,json=buildNumber,proto3" json:"build_number,omitempty"`
|
||
Source string `protobuf:"bytes,14,opt,name=source,proto3" json:"source,omitempty"`
|
||
InstallChannel string `protobuf:"bytes,15,opt,name=install_channel,json=installChannel,proto3" json:"install_channel,omitempty"`
|
||
Campaign string `protobuf:"bytes,16,opt,name=campaign,proto3" json:"campaign,omitempty"`
|
||
Platform string `protobuf:"bytes,17,opt,name=platform,proto3" json:"platform,omitempty"`
|
||
Language string `protobuf:"bytes,18,opt,name=language,proto3" json:"language,omitempty"`
|
||
Timezone string `protobuf:"bytes,19,opt,name=timezone,proto3" json:"timezone,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *QuickCreateAccountRequest) Reset() {
|
||
*x = QuickCreateAccountRequest{}
|
||
mi := &file_proto_user_v1_auth_proto_msgTypes[8]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *QuickCreateAccountRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*QuickCreateAccountRequest) ProtoMessage() {}
|
||
|
||
func (x *QuickCreateAccountRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_proto_user_v1_auth_proto_msgTypes[8]
|
||
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 QuickCreateAccountRequest.ProtoReflect.Descriptor instead.
|
||
func (*QuickCreateAccountRequest) Descriptor() ([]byte, []int) {
|
||
return file_proto_user_v1_auth_proto_rawDescGZIP(), []int{8}
|
||
}
|
||
|
||
func (x *QuickCreateAccountRequest) GetMeta() *RequestMeta {
|
||
if x != nil {
|
||
return x.Meta
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *QuickCreateAccountRequest) GetPassword() string {
|
||
if x != nil {
|
||
return x.Password
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *QuickCreateAccountRequest) GetUsername() string {
|
||
if x != nil {
|
||
return x.Username
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *QuickCreateAccountRequest) GetAvatar() string {
|
||
if x != nil {
|
||
return x.Avatar
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *QuickCreateAccountRequest) GetGender() string {
|
||
if x != nil {
|
||
return x.Gender
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *QuickCreateAccountRequest) GetCountry() string {
|
||
if x != nil {
|
||
return x.Country
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *QuickCreateAccountRequest) GetInviteCode() string {
|
||
if x != nil {
|
||
return x.InviteCode
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *QuickCreateAccountRequest) GetDeviceId() string {
|
||
if x != nil {
|
||
return x.DeviceId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *QuickCreateAccountRequest) GetDevice() string {
|
||
if x != nil {
|
||
return x.Device
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *QuickCreateAccountRequest) GetOsVersion() string {
|
||
if x != nil {
|
||
return x.OsVersion
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *QuickCreateAccountRequest) GetBirth() string {
|
||
if x != nil {
|
||
return x.Birth
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *QuickCreateAccountRequest) GetAppVersion() string {
|
||
if x != nil {
|
||
return x.AppVersion
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *QuickCreateAccountRequest) GetBuildNumber() string {
|
||
if x != nil {
|
||
return x.BuildNumber
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *QuickCreateAccountRequest) GetSource() string {
|
||
if x != nil {
|
||
return x.Source
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *QuickCreateAccountRequest) GetInstallChannel() string {
|
||
if x != nil {
|
||
return x.InstallChannel
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *QuickCreateAccountRequest) GetCampaign() string {
|
||
if x != nil {
|
||
return x.Campaign
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *QuickCreateAccountRequest) GetPlatform() string {
|
||
if x != nil {
|
||
return x.Platform
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *QuickCreateAccountRequest) GetLanguage() string {
|
||
if x != nil {
|
||
return x.Language
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *QuickCreateAccountRequest) GetTimezone() string {
|
||
if x != nil {
|
||
return x.Timezone
|
||
}
|
||
return ""
|
||
}
|
||
|
||
// QuickCreateAccountResponse 返回新账号身份;普通账号含登录态,source=game_robot 时 token 只含 user_id/display_user_id。
|
||
type QuickCreateAccountResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Token *AuthToken `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
|
||
PasswordSet bool `protobuf:"varint,2,opt,name=password_set,json=passwordSet,proto3" json:"password_set,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *QuickCreateAccountResponse) Reset() {
|
||
*x = QuickCreateAccountResponse{}
|
||
mi := &file_proto_user_v1_auth_proto_msgTypes[9]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *QuickCreateAccountResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*QuickCreateAccountResponse) ProtoMessage() {}
|
||
|
||
func (x *QuickCreateAccountResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_proto_user_v1_auth_proto_msgTypes[9]
|
||
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 QuickCreateAccountResponse.ProtoReflect.Descriptor instead.
|
||
func (*QuickCreateAccountResponse) Descriptor() ([]byte, []int) {
|
||
return file_proto_user_v1_auth_proto_rawDescGZIP(), []int{9}
|
||
}
|
||
|
||
func (x *QuickCreateAccountResponse) GetToken() *AuthToken {
|
||
if x != nil {
|
||
return x.Token
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *QuickCreateAccountResponse) GetPasswordSet() bool {
|
||
if x != nil {
|
||
return x.PasswordSet
|
||
}
|
||
return false
|
||
}
|
||
|
||
// RefreshTokenRequest 使用 refresh token 换取新 token。
|
||
type RefreshTokenRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Meta *RequestMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
|
||
RefreshToken string `protobuf:"bytes,2,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *RefreshTokenRequest) Reset() {
|
||
*x = RefreshTokenRequest{}
|
||
mi := &file_proto_user_v1_auth_proto_msgTypes[10]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *RefreshTokenRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*RefreshTokenRequest) ProtoMessage() {}
|
||
|
||
func (x *RefreshTokenRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_proto_user_v1_auth_proto_msgTypes[10]
|
||
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 RefreshTokenRequest.ProtoReflect.Descriptor instead.
|
||
func (*RefreshTokenRequest) Descriptor() ([]byte, []int) {
|
||
return file_proto_user_v1_auth_proto_rawDescGZIP(), []int{10}
|
||
}
|
||
|
||
func (x *RefreshTokenRequest) GetMeta() *RequestMeta {
|
||
if x != nil {
|
||
return x.Meta
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *RefreshTokenRequest) GetRefreshToken() string {
|
||
if x != nil {
|
||
return x.RefreshToken
|
||
}
|
||
return ""
|
||
}
|
||
|
||
// RefreshTokenResponse 返回轮换后的令牌。
|
||
type RefreshTokenResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Token *AuthToken `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *RefreshTokenResponse) Reset() {
|
||
*x = RefreshTokenResponse{}
|
||
mi := &file_proto_user_v1_auth_proto_msgTypes[11]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *RefreshTokenResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*RefreshTokenResponse) ProtoMessage() {}
|
||
|
||
func (x *RefreshTokenResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_proto_user_v1_auth_proto_msgTypes[11]
|
||
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 RefreshTokenResponse.ProtoReflect.Descriptor instead.
|
||
func (*RefreshTokenResponse) Descriptor() ([]byte, []int) {
|
||
return file_proto_user_v1_auth_proto_rawDescGZIP(), []int{11}
|
||
}
|
||
|
||
func (x *RefreshTokenResponse) GetToken() *AuthToken {
|
||
if x != nil {
|
||
return x.Token
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// LogoutRequest 失效指定会话或 refresh token。
|
||
type LogoutRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Meta *RequestMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
|
||
SessionId string `protobuf:"bytes,2,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
|
||
RefreshToken string `protobuf:"bytes,3,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *LogoutRequest) Reset() {
|
||
*x = LogoutRequest{}
|
||
mi := &file_proto_user_v1_auth_proto_msgTypes[12]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *LogoutRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*LogoutRequest) ProtoMessage() {}
|
||
|
||
func (x *LogoutRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_proto_user_v1_auth_proto_msgTypes[12]
|
||
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 LogoutRequest.ProtoReflect.Descriptor instead.
|
||
func (*LogoutRequest) Descriptor() ([]byte, []int) {
|
||
return file_proto_user_v1_auth_proto_rawDescGZIP(), []int{12}
|
||
}
|
||
|
||
func (x *LogoutRequest) GetMeta() *RequestMeta {
|
||
if x != nil {
|
||
return x.Meta
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *LogoutRequest) GetSessionId() string {
|
||
if x != nil {
|
||
return x.SessionId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *LogoutRequest) GetRefreshToken() string {
|
||
if x != nil {
|
||
return x.RefreshToken
|
||
}
|
||
return ""
|
||
}
|
||
|
||
// LogoutResponse 返回会话是否被失效。
|
||
type LogoutResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Revoked bool `protobuf:"varint,1,opt,name=revoked,proto3" json:"revoked,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *LogoutResponse) Reset() {
|
||
*x = LogoutResponse{}
|
||
mi := &file_proto_user_v1_auth_proto_msgTypes[13]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *LogoutResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*LogoutResponse) ProtoMessage() {}
|
||
|
||
func (x *LogoutResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_proto_user_v1_auth_proto_msgTypes[13]
|
||
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 LogoutResponse.ProtoReflect.Descriptor instead.
|
||
func (*LogoutResponse) Descriptor() ([]byte, []int) {
|
||
return file_proto_user_v1_auth_proto_rawDescGZIP(), []int{13}
|
||
}
|
||
|
||
func (x *LogoutResponse) GetRevoked() bool {
|
||
if x != nil {
|
||
return x.Revoked
|
||
}
|
||
return false
|
||
}
|
||
|
||
// RecordLoginBlockedRequest 记录 gateway 入口快拦拒绝的登录审计。
|
||
type RecordLoginBlockedRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Meta *RequestMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
|
||
Channel string `protobuf:"bytes,2,opt,name=channel,proto3" json:"channel,omitempty"`
|
||
Platform string `protobuf:"bytes,3,opt,name=platform,proto3" json:"platform,omitempty"`
|
||
Language string `protobuf:"bytes,4,opt,name=language,proto3" json:"language,omitempty"`
|
||
Timezone string `protobuf:"bytes,5,opt,name=timezone,proto3" json:"timezone,omitempty"`
|
||
BlockReason string `protobuf:"bytes,6,opt,name=block_reason,json=blockReason,proto3" json:"block_reason,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *RecordLoginBlockedRequest) Reset() {
|
||
*x = RecordLoginBlockedRequest{}
|
||
mi := &file_proto_user_v1_auth_proto_msgTypes[14]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *RecordLoginBlockedRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*RecordLoginBlockedRequest) ProtoMessage() {}
|
||
|
||
func (x *RecordLoginBlockedRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_proto_user_v1_auth_proto_msgTypes[14]
|
||
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 RecordLoginBlockedRequest.ProtoReflect.Descriptor instead.
|
||
func (*RecordLoginBlockedRequest) Descriptor() ([]byte, []int) {
|
||
return file_proto_user_v1_auth_proto_rawDescGZIP(), []int{14}
|
||
}
|
||
|
||
func (x *RecordLoginBlockedRequest) GetMeta() *RequestMeta {
|
||
if x != nil {
|
||
return x.Meta
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *RecordLoginBlockedRequest) GetChannel() string {
|
||
if x != nil {
|
||
return x.Channel
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *RecordLoginBlockedRequest) GetPlatform() string {
|
||
if x != nil {
|
||
return x.Platform
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *RecordLoginBlockedRequest) GetLanguage() string {
|
||
if x != nil {
|
||
return x.Language
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *RecordLoginBlockedRequest) GetTimezone() string {
|
||
if x != nil {
|
||
return x.Timezone
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *RecordLoginBlockedRequest) GetBlockReason() string {
|
||
if x != nil {
|
||
return x.BlockReason
|
||
}
|
||
return ""
|
||
}
|
||
|
||
// RecordLoginBlockedResponse 返回审计写入是否成功。
|
||
type RecordLoginBlockedResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Recorded bool `protobuf:"varint,1,opt,name=recorded,proto3" json:"recorded,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *RecordLoginBlockedResponse) Reset() {
|
||
*x = RecordLoginBlockedResponse{}
|
||
mi := &file_proto_user_v1_auth_proto_msgTypes[15]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *RecordLoginBlockedResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*RecordLoginBlockedResponse) ProtoMessage() {}
|
||
|
||
func (x *RecordLoginBlockedResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_proto_user_v1_auth_proto_msgTypes[15]
|
||
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 RecordLoginBlockedResponse.ProtoReflect.Descriptor instead.
|
||
func (*RecordLoginBlockedResponse) Descriptor() ([]byte, []int) {
|
||
return file_proto_user_v1_auth_proto_rawDescGZIP(), []int{15}
|
||
}
|
||
|
||
func (x *RecordLoginBlockedResponse) GetRecorded() bool {
|
||
if x != nil {
|
||
return x.Recorded
|
||
}
|
||
return false
|
||
}
|
||
|
||
// CheckLoginRiskIPWhitelistRequest 查询入口 IP 是否命中后台白名单。
|
||
type CheckLoginRiskIPWhitelistRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Meta *RequestMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
|
||
ClientIp string `protobuf:"bytes,2,opt,name=client_ip,json=clientIp,proto3" json:"client_ip,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *CheckLoginRiskIPWhitelistRequest) Reset() {
|
||
*x = CheckLoginRiskIPWhitelistRequest{}
|
||
mi := &file_proto_user_v1_auth_proto_msgTypes[16]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *CheckLoginRiskIPWhitelistRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*CheckLoginRiskIPWhitelistRequest) ProtoMessage() {}
|
||
|
||
func (x *CheckLoginRiskIPWhitelistRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_proto_user_v1_auth_proto_msgTypes[16]
|
||
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 CheckLoginRiskIPWhitelistRequest.ProtoReflect.Descriptor instead.
|
||
func (*CheckLoginRiskIPWhitelistRequest) Descriptor() ([]byte, []int) {
|
||
return file_proto_user_v1_auth_proto_rawDescGZIP(), []int{16}
|
||
}
|
||
|
||
func (x *CheckLoginRiskIPWhitelistRequest) GetMeta() *RequestMeta {
|
||
if x != nil {
|
||
return x.Meta
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *CheckLoginRiskIPWhitelistRequest) GetClientIp() string {
|
||
if x != nil {
|
||
return x.ClientIp
|
||
}
|
||
return ""
|
||
}
|
||
|
||
// CheckLoginRiskIPWhitelistResponse 返回入口 IP 是否跳过登录地区屏蔽。
|
||
type CheckLoginRiskIPWhitelistResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Whitelisted bool `protobuf:"varint,1,opt,name=whitelisted,proto3" json:"whitelisted,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *CheckLoginRiskIPWhitelistResponse) Reset() {
|
||
*x = CheckLoginRiskIPWhitelistResponse{}
|
||
mi := &file_proto_user_v1_auth_proto_msgTypes[17]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *CheckLoginRiskIPWhitelistResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*CheckLoginRiskIPWhitelistResponse) ProtoMessage() {}
|
||
|
||
func (x *CheckLoginRiskIPWhitelistResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_proto_user_v1_auth_proto_msgTypes[17]
|
||
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 CheckLoginRiskIPWhitelistResponse.ProtoReflect.Descriptor instead.
|
||
func (*CheckLoginRiskIPWhitelistResponse) Descriptor() ([]byte, []int) {
|
||
return file_proto_user_v1_auth_proto_rawDescGZIP(), []int{17}
|
||
}
|
||
|
||
func (x *CheckLoginRiskIPWhitelistResponse) GetWhitelisted() bool {
|
||
if x != nil {
|
||
return x.Whitelisted
|
||
}
|
||
return false
|
||
}
|
||
|
||
// RefreshLoginRiskWhitelistCacheRequest 要求 user-service 从 MySQL 重建登录风控白名单缓存。
|
||
type RefreshLoginRiskWhitelistCacheRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Meta *RequestMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *RefreshLoginRiskWhitelistCacheRequest) Reset() {
|
||
*x = RefreshLoginRiskWhitelistCacheRequest{}
|
||
mi := &file_proto_user_v1_auth_proto_msgTypes[18]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *RefreshLoginRiskWhitelistCacheRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*RefreshLoginRiskWhitelistCacheRequest) ProtoMessage() {}
|
||
|
||
func (x *RefreshLoginRiskWhitelistCacheRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_proto_user_v1_auth_proto_msgTypes[18]
|
||
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 RefreshLoginRiskWhitelistCacheRequest.ProtoReflect.Descriptor instead.
|
||
func (*RefreshLoginRiskWhitelistCacheRequest) Descriptor() ([]byte, []int) {
|
||
return file_proto_user_v1_auth_proto_rawDescGZIP(), []int{18}
|
||
}
|
||
|
||
func (x *RefreshLoginRiskWhitelistCacheRequest) GetMeta() *RequestMeta {
|
||
if x != nil {
|
||
return x.Meta
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// RefreshLoginRiskWhitelistCacheResponse 返回本次刷新后的白名单规模,便于后台保存后确认缓存已更新。
|
||
type RefreshLoginRiskWhitelistCacheResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Refreshed bool `protobuf:"varint,1,opt,name=refreshed,proto3" json:"refreshed,omitempty"`
|
||
IpWhitelistCount int32 `protobuf:"varint,2,opt,name=ip_whitelist_count,json=ipWhitelistCount,proto3" json:"ip_whitelist_count,omitempty"`
|
||
UserWhitelistCount int32 `protobuf:"varint,3,opt,name=user_whitelist_count,json=userWhitelistCount,proto3" json:"user_whitelist_count,omitempty"`
|
||
UserCacheExpiresAtMs int64 `protobuf:"varint,4,opt,name=user_cache_expires_at_ms,json=userCacheExpiresAtMs,proto3" json:"user_cache_expires_at_ms,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *RefreshLoginRiskWhitelistCacheResponse) Reset() {
|
||
*x = RefreshLoginRiskWhitelistCacheResponse{}
|
||
mi := &file_proto_user_v1_auth_proto_msgTypes[19]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *RefreshLoginRiskWhitelistCacheResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*RefreshLoginRiskWhitelistCacheResponse) ProtoMessage() {}
|
||
|
||
func (x *RefreshLoginRiskWhitelistCacheResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_proto_user_v1_auth_proto_msgTypes[19]
|
||
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 RefreshLoginRiskWhitelistCacheResponse.ProtoReflect.Descriptor instead.
|
||
func (*RefreshLoginRiskWhitelistCacheResponse) Descriptor() ([]byte, []int) {
|
||
return file_proto_user_v1_auth_proto_rawDescGZIP(), []int{19}
|
||
}
|
||
|
||
func (x *RefreshLoginRiskWhitelistCacheResponse) GetRefreshed() bool {
|
||
if x != nil {
|
||
return x.Refreshed
|
||
}
|
||
return false
|
||
}
|
||
|
||
func (x *RefreshLoginRiskWhitelistCacheResponse) GetIpWhitelistCount() int32 {
|
||
if x != nil {
|
||
return x.IpWhitelistCount
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *RefreshLoginRiskWhitelistCacheResponse) GetUserWhitelistCount() int32 {
|
||
if x != nil {
|
||
return x.UserWhitelistCount
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *RefreshLoginRiskWhitelistCacheResponse) GetUserCacheExpiresAtMs() int64 {
|
||
if x != nil {
|
||
return x.UserCacheExpiresAtMs
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// RegisterRiskConfig 是注册链路读取的风控配置。
|
||
type RegisterRiskConfig struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
AppCode string `protobuf:"bytes,1,opt,name=app_code,json=appCode,proto3" json:"app_code,omitempty"`
|
||
MaxAccountsPerDevice int32 `protobuf:"varint,2,opt,name=max_accounts_per_device,json=maxAccountsPerDevice,proto3" json:"max_accounts_per_device,omitempty"`
|
||
UpdatedAtMs int64 `protobuf:"varint,3,opt,name=updated_at_ms,json=updatedAtMs,proto3" json:"updated_at_ms,omitempty"`
|
||
UpdatedByAdminId int64 `protobuf:"varint,4,opt,name=updated_by_admin_id,json=updatedByAdminId,proto3" json:"updated_by_admin_id,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *RegisterRiskConfig) Reset() {
|
||
*x = RegisterRiskConfig{}
|
||
mi := &file_proto_user_v1_auth_proto_msgTypes[20]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *RegisterRiskConfig) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*RegisterRiskConfig) ProtoMessage() {}
|
||
|
||
func (x *RegisterRiskConfig) ProtoReflect() protoreflect.Message {
|
||
mi := &file_proto_user_v1_auth_proto_msgTypes[20]
|
||
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 RegisterRiskConfig.ProtoReflect.Descriptor instead.
|
||
func (*RegisterRiskConfig) Descriptor() ([]byte, []int) {
|
||
return file_proto_user_v1_auth_proto_rawDescGZIP(), []int{20}
|
||
}
|
||
|
||
func (x *RegisterRiskConfig) GetAppCode() string {
|
||
if x != nil {
|
||
return x.AppCode
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *RegisterRiskConfig) GetMaxAccountsPerDevice() int32 {
|
||
if x != nil {
|
||
return x.MaxAccountsPerDevice
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *RegisterRiskConfig) GetUpdatedAtMs() int64 {
|
||
if x != nil {
|
||
return x.UpdatedAtMs
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *RegisterRiskConfig) GetUpdatedByAdminId() int64 {
|
||
if x != nil {
|
||
return x.UpdatedByAdminId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// GetRegisterRiskConfigRequest 查询当前 App 的注册风控配置。
|
||
type GetRegisterRiskConfigRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Meta *RequestMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *GetRegisterRiskConfigRequest) Reset() {
|
||
*x = GetRegisterRiskConfigRequest{}
|
||
mi := &file_proto_user_v1_auth_proto_msgTypes[21]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *GetRegisterRiskConfigRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*GetRegisterRiskConfigRequest) ProtoMessage() {}
|
||
|
||
func (x *GetRegisterRiskConfigRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_proto_user_v1_auth_proto_msgTypes[21]
|
||
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 GetRegisterRiskConfigRequest.ProtoReflect.Descriptor instead.
|
||
func (*GetRegisterRiskConfigRequest) Descriptor() ([]byte, []int) {
|
||
return file_proto_user_v1_auth_proto_rawDescGZIP(), []int{21}
|
||
}
|
||
|
||
func (x *GetRegisterRiskConfigRequest) GetMeta() *RequestMeta {
|
||
if x != nil {
|
||
return x.Meta
|
||
}
|
||
return nil
|
||
}
|
||
|
||
type GetRegisterRiskConfigResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Config *RegisterRiskConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *GetRegisterRiskConfigResponse) Reset() {
|
||
*x = GetRegisterRiskConfigResponse{}
|
||
mi := &file_proto_user_v1_auth_proto_msgTypes[22]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *GetRegisterRiskConfigResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*GetRegisterRiskConfigResponse) ProtoMessage() {}
|
||
|
||
func (x *GetRegisterRiskConfigResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_proto_user_v1_auth_proto_msgTypes[22]
|
||
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 GetRegisterRiskConfigResponse.ProtoReflect.Descriptor instead.
|
||
func (*GetRegisterRiskConfigResponse) Descriptor() ([]byte, []int) {
|
||
return file_proto_user_v1_auth_proto_rawDescGZIP(), []int{22}
|
||
}
|
||
|
||
func (x *GetRegisterRiskConfigResponse) GetConfig() *RegisterRiskConfig {
|
||
if x != nil {
|
||
return x.Config
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// UpdateRegisterRiskConfigRequest 由后台保存当前 App 的注册风控配置。
|
||
type UpdateRegisterRiskConfigRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Meta *RequestMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
|
||
MaxAccountsPerDevice int32 `protobuf:"varint,2,opt,name=max_accounts_per_device,json=maxAccountsPerDevice,proto3" json:"max_accounts_per_device,omitempty"`
|
||
OperatorAdminId int64 `protobuf:"varint,3,opt,name=operator_admin_id,json=operatorAdminId,proto3" json:"operator_admin_id,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *UpdateRegisterRiskConfigRequest) Reset() {
|
||
*x = UpdateRegisterRiskConfigRequest{}
|
||
mi := &file_proto_user_v1_auth_proto_msgTypes[23]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *UpdateRegisterRiskConfigRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*UpdateRegisterRiskConfigRequest) ProtoMessage() {}
|
||
|
||
func (x *UpdateRegisterRiskConfigRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_proto_user_v1_auth_proto_msgTypes[23]
|
||
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 UpdateRegisterRiskConfigRequest.ProtoReflect.Descriptor instead.
|
||
func (*UpdateRegisterRiskConfigRequest) Descriptor() ([]byte, []int) {
|
||
return file_proto_user_v1_auth_proto_rawDescGZIP(), []int{23}
|
||
}
|
||
|
||
func (x *UpdateRegisterRiskConfigRequest) GetMeta() *RequestMeta {
|
||
if x != nil {
|
||
return x.Meta
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *UpdateRegisterRiskConfigRequest) GetMaxAccountsPerDevice() int32 {
|
||
if x != nil {
|
||
return x.MaxAccountsPerDevice
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *UpdateRegisterRiskConfigRequest) GetOperatorAdminId() int64 {
|
||
if x != nil {
|
||
return x.OperatorAdminId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
type UpdateRegisterRiskConfigResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Config *RegisterRiskConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *UpdateRegisterRiskConfigResponse) Reset() {
|
||
*x = UpdateRegisterRiskConfigResponse{}
|
||
mi := &file_proto_user_v1_auth_proto_msgTypes[24]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *UpdateRegisterRiskConfigResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*UpdateRegisterRiskConfigResponse) ProtoMessage() {}
|
||
|
||
func (x *UpdateRegisterRiskConfigResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_proto_user_v1_auth_proto_msgTypes[24]
|
||
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 UpdateRegisterRiskConfigResponse.ProtoReflect.Descriptor instead.
|
||
func (*UpdateRegisterRiskConfigResponse) Descriptor() ([]byte, []int) {
|
||
return file_proto_user_v1_auth_proto_rawDescGZIP(), []int{24}
|
||
}
|
||
|
||
func (x *UpdateRegisterRiskConfigResponse) GetConfig() *RegisterRiskConfig {
|
||
if x != nil {
|
||
return x.Config
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// AppHeartbeatRequest 刷新当前登录会话的 App 在线心跳。
|
||
type AppHeartbeatRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Meta *RequestMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
|
||
UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
||
SessionId string `protobuf:"bytes,3,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *AppHeartbeatRequest) Reset() {
|
||
*x = AppHeartbeatRequest{}
|
||
mi := &file_proto_user_v1_auth_proto_msgTypes[25]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *AppHeartbeatRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*AppHeartbeatRequest) ProtoMessage() {}
|
||
|
||
func (x *AppHeartbeatRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_proto_user_v1_auth_proto_msgTypes[25]
|
||
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 AppHeartbeatRequest.ProtoReflect.Descriptor instead.
|
||
func (*AppHeartbeatRequest) Descriptor() ([]byte, []int) {
|
||
return file_proto_user_v1_auth_proto_rawDescGZIP(), []int{25}
|
||
}
|
||
|
||
func (x *AppHeartbeatRequest) GetMeta() *RequestMeta {
|
||
if x != nil {
|
||
return x.Meta
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *AppHeartbeatRequest) GetUserId() int64 {
|
||
if x != nil {
|
||
return x.UserId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *AppHeartbeatRequest) GetSessionId() string {
|
||
if x != nil {
|
||
return x.SessionId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
// AppHeartbeatResponse 返回本次会话心跳写入时间,并在当前会话仍有效时顺手重签 access token。
|
||
type AppHeartbeatResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Accepted bool `protobuf:"varint,1,opt,name=accepted,proto3" json:"accepted,omitempty"`
|
||
HeartbeatAtMs int64 `protobuf:"varint,2,opt,name=heartbeat_at_ms,json=heartbeatAtMs,proto3" json:"heartbeat_at_ms,omitempty"`
|
||
ServerTimeMs int64 `protobuf:"varint,3,opt,name=server_time_ms,json=serverTimeMs,proto3" json:"server_time_ms,omitempty"`
|
||
Token *AuthToken `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *AppHeartbeatResponse) Reset() {
|
||
*x = AppHeartbeatResponse{}
|
||
mi := &file_proto_user_v1_auth_proto_msgTypes[26]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *AppHeartbeatResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*AppHeartbeatResponse) ProtoMessage() {}
|
||
|
||
func (x *AppHeartbeatResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_proto_user_v1_auth_proto_msgTypes[26]
|
||
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 AppHeartbeatResponse.ProtoReflect.Descriptor instead.
|
||
func (*AppHeartbeatResponse) Descriptor() ([]byte, []int) {
|
||
return file_proto_user_v1_auth_proto_rawDescGZIP(), []int{26}
|
||
}
|
||
|
||
func (x *AppHeartbeatResponse) GetAccepted() bool {
|
||
if x != nil {
|
||
return x.Accepted
|
||
}
|
||
return false
|
||
}
|
||
|
||
func (x *AppHeartbeatResponse) GetHeartbeatAtMs() int64 {
|
||
if x != nil {
|
||
return x.HeartbeatAtMs
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *AppHeartbeatResponse) GetServerTimeMs() int64 {
|
||
if x != nil {
|
||
return x.ServerTimeMs
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *AppHeartbeatResponse) GetToken() *AuthToken {
|
||
if x != nil {
|
||
return x.Token
|
||
}
|
||
return nil
|
||
}
|
||
|
||
var File_proto_user_v1_auth_proto protoreflect.FileDescriptor
|
||
|
||
const file_proto_user_v1_auth_proto_rawDesc = "" +
|
||
"\n" +
|
||
"\x18proto/user/v1/auth.proto\x12\rhyapp.user.v1\x1a\x18proto/user/v1/user.proto\"\x8a\x01\n" +
|
||
"\x14LoginPasswordRequest\x12.\n" +
|
||
"\x04meta\x18\x01 \x01(\v2\x1a.hyapp.user.v1.RequestMetaR\x04meta\x12&\n" +
|
||
"\x0fdisplay_user_id\x18\x02 \x01(\tR\rdisplayUserId\x12\x1a\n" +
|
||
"\bpassword\x18\x03 \x01(\tR\bpassword\"\xea\x04\n" +
|
||
"\x16LoginThirdPartyRequest\x12.\n" +
|
||
"\x04meta\x18\x01 \x01(\v2\x1a.hyapp.user.v1.RequestMetaR\x04meta\x12\x1a\n" +
|
||
"\bprovider\x18\x02 \x01(\tR\bprovider\x12\x1e\n" +
|
||
"\n" +
|
||
"credential\x18\x03 \x01(\tR\n" +
|
||
"credential\x12\x1a\n" +
|
||
"\busername\x18\x04 \x01(\tR\busername\x12\x16\n" +
|
||
"\x06gender\x18\x05 \x01(\tR\x06gender\x12\x18\n" +
|
||
"\acountry\x18\x06 \x01(\tR\acountry\x12\x1f\n" +
|
||
"\vinvite_code\x18\a \x01(\tR\n" +
|
||
"inviteCode\x12\x1b\n" +
|
||
"\tdevice_id\x18\b \x01(\tR\bdeviceId\x12\x16\n" +
|
||
"\x06device\x18\t \x01(\tR\x06device\x12\x16\n" +
|
||
"\x06avatar\x18\n" +
|
||
" \x01(\tR\x06avatar\x12\x14\n" +
|
||
"\x05birth\x18\v \x01(\tR\x05birth\x12\x1f\n" +
|
||
"\vapp_version\x18\f \x01(\tR\n" +
|
||
"appVersion\x12\x16\n" +
|
||
"\x06source\x18\r \x01(\tR\x06source\x12\x1a\n" +
|
||
"\bplatform\x18\x0e \x01(\tR\bplatform\x12\x1a\n" +
|
||
"\blanguage\x18\x0f \x01(\tR\blanguage\x12\x1d\n" +
|
||
"\n" +
|
||
"os_version\x18\x10 \x01(\tR\tosVersion\x12!\n" +
|
||
"\fbuild_number\x18\x11 \x01(\tR\vbuildNumber\x12\x1a\n" +
|
||
"\btimezone\x18\x12 \x01(\tR\btimezone\x12'\n" +
|
||
"\x0finstall_channel\x18\x13 \x01(\tR\x0einstallChannel\x12\x1a\n" +
|
||
"\bcampaign\x18\x14 \x01(\tR\bcampaign\"\xed\x04\n" +
|
||
"\x19RegisterThirdPartyRequest\x12.\n" +
|
||
"\x04meta\x18\x01 \x01(\v2\x1a.hyapp.user.v1.RequestMetaR\x04meta\x12\x1a\n" +
|
||
"\bprovider\x18\x02 \x01(\tR\bprovider\x12\x1e\n" +
|
||
"\n" +
|
||
"credential\x18\x03 \x01(\tR\n" +
|
||
"credential\x12\x1b\n" +
|
||
"\tdevice_id\x18\x04 \x01(\tR\bdeviceId\x12\x1a\n" +
|
||
"\busername\x18\x05 \x01(\tR\busername\x12\x16\n" +
|
||
"\x06avatar\x18\x06 \x01(\tR\x06avatar\x12\x16\n" +
|
||
"\x06gender\x18\a \x01(\tR\x06gender\x12\x18\n" +
|
||
"\acountry\x18\b \x01(\tR\acountry\x12\x1f\n" +
|
||
"\vinvite_code\x18\t \x01(\tR\n" +
|
||
"inviteCode\x12\x16\n" +
|
||
"\x06device\x18\n" +
|
||
" \x01(\tR\x06device\x12\x1d\n" +
|
||
"\n" +
|
||
"os_version\x18\v \x01(\tR\tosVersion\x12\x14\n" +
|
||
"\x05birth\x18\f \x01(\tR\x05birth\x12\x1f\n" +
|
||
"\vapp_version\x18\r \x01(\tR\n" +
|
||
"appVersion\x12!\n" +
|
||
"\fbuild_number\x18\x0e \x01(\tR\vbuildNumber\x12\x16\n" +
|
||
"\x06source\x18\x0f \x01(\tR\x06source\x12'\n" +
|
||
"\x0finstall_channel\x18\x10 \x01(\tR\x0einstallChannel\x12\x1a\n" +
|
||
"\bcampaign\x18\x11 \x01(\tR\bcampaign\x12\x1a\n" +
|
||
"\bplatform\x18\x12 \x01(\tR\bplatform\x12\x1a\n" +
|
||
"\blanguage\x18\x13 \x01(\tR\blanguage\x12\x1a\n" +
|
||
"\btimezone\x18\x14 \x01(\tR\btimezone\"\x8e\x01\n" +
|
||
" CheckThirdPartyRegisteredRequest\x12.\n" +
|
||
"\x04meta\x18\x01 \x01(\v2\x1a.hyapp.user.v1.RequestMetaR\x04meta\x12\x1a\n" +
|
||
"\bprovider\x18\x02 \x01(\tR\bprovider\x12\x1e\n" +
|
||
"\n" +
|
||
"credential\x18\x03 \x01(\tR\n" +
|
||
"credential\"C\n" +
|
||
"!CheckThirdPartyRegisteredResponse\x12\x1e\n" +
|
||
"\n" +
|
||
"registered\x18\x01 \x01(\bR\n" +
|
||
"registered\"\xb8\x01\n" +
|
||
"\fAuthResponse\x12.\n" +
|
||
"\x05token\x18\x01 \x01(\v2\x18.hyapp.user.v1.AuthTokenR\x05token\x12\x1e\n" +
|
||
"\vis_new_user\x18\x02 \x01(\bR\tisNewUser\x12+\n" +
|
||
"\x11profile_completed\x18\x03 \x01(\bR\x10profileCompleted\x12+\n" +
|
||
"\x11onboarding_status\x18\x04 \x01(\tR\x10onboardingStatus\"y\n" +
|
||
"\x12SetPasswordRequest\x12.\n" +
|
||
"\x04meta\x18\x01 \x01(\v2\x1a.hyapp.user.v1.RequestMetaR\x04meta\x12\x17\n" +
|
||
"\auser_id\x18\x02 \x01(\x03R\x06userId\x12\x1a\n" +
|
||
"\bpassword\x18\x03 \x01(\tR\bpassword\"8\n" +
|
||
"\x13SetPasswordResponse\x12!\n" +
|
||
"\fpassword_set\x18\x01 \x01(\bR\vpasswordSet\"\xcd\x04\n" +
|
||
"\x19QuickCreateAccountRequest\x12.\n" +
|
||
"\x04meta\x18\x01 \x01(\v2\x1a.hyapp.user.v1.RequestMetaR\x04meta\x12\x1a\n" +
|
||
"\bpassword\x18\x02 \x01(\tR\bpassword\x12\x1a\n" +
|
||
"\busername\x18\x03 \x01(\tR\busername\x12\x16\n" +
|
||
"\x06avatar\x18\x04 \x01(\tR\x06avatar\x12\x16\n" +
|
||
"\x06gender\x18\x05 \x01(\tR\x06gender\x12\x18\n" +
|
||
"\acountry\x18\x06 \x01(\tR\acountry\x12\x1f\n" +
|
||
"\vinvite_code\x18\a \x01(\tR\n" +
|
||
"inviteCode\x12\x1b\n" +
|
||
"\tdevice_id\x18\b \x01(\tR\bdeviceId\x12\x16\n" +
|
||
"\x06device\x18\t \x01(\tR\x06device\x12\x1d\n" +
|
||
"\n" +
|
||
"os_version\x18\n" +
|
||
" \x01(\tR\tosVersion\x12\x14\n" +
|
||
"\x05birth\x18\v \x01(\tR\x05birth\x12\x1f\n" +
|
||
"\vapp_version\x18\f \x01(\tR\n" +
|
||
"appVersion\x12!\n" +
|
||
"\fbuild_number\x18\r \x01(\tR\vbuildNumber\x12\x16\n" +
|
||
"\x06source\x18\x0e \x01(\tR\x06source\x12'\n" +
|
||
"\x0finstall_channel\x18\x0f \x01(\tR\x0einstallChannel\x12\x1a\n" +
|
||
"\bcampaign\x18\x10 \x01(\tR\bcampaign\x12\x1a\n" +
|
||
"\bplatform\x18\x11 \x01(\tR\bplatform\x12\x1a\n" +
|
||
"\blanguage\x18\x12 \x01(\tR\blanguage\x12\x1a\n" +
|
||
"\btimezone\x18\x13 \x01(\tR\btimezone\"o\n" +
|
||
"\x1aQuickCreateAccountResponse\x12.\n" +
|
||
"\x05token\x18\x01 \x01(\v2\x18.hyapp.user.v1.AuthTokenR\x05token\x12!\n" +
|
||
"\fpassword_set\x18\x02 \x01(\bR\vpasswordSet\"j\n" +
|
||
"\x13RefreshTokenRequest\x12.\n" +
|
||
"\x04meta\x18\x01 \x01(\v2\x1a.hyapp.user.v1.RequestMetaR\x04meta\x12#\n" +
|
||
"\rrefresh_token\x18\x02 \x01(\tR\frefreshToken\"F\n" +
|
||
"\x14RefreshTokenResponse\x12.\n" +
|
||
"\x05token\x18\x01 \x01(\v2\x18.hyapp.user.v1.AuthTokenR\x05token\"\x83\x01\n" +
|
||
"\rLogoutRequest\x12.\n" +
|
||
"\x04meta\x18\x01 \x01(\v2\x1a.hyapp.user.v1.RequestMetaR\x04meta\x12\x1d\n" +
|
||
"\n" +
|
||
"session_id\x18\x02 \x01(\tR\tsessionId\x12#\n" +
|
||
"\rrefresh_token\x18\x03 \x01(\tR\frefreshToken\"*\n" +
|
||
"\x0eLogoutResponse\x12\x18\n" +
|
||
"\arevoked\x18\x01 \x01(\bR\arevoked\"\xdc\x01\n" +
|
||
"\x19RecordLoginBlockedRequest\x12.\n" +
|
||
"\x04meta\x18\x01 \x01(\v2\x1a.hyapp.user.v1.RequestMetaR\x04meta\x12\x18\n" +
|
||
"\achannel\x18\x02 \x01(\tR\achannel\x12\x1a\n" +
|
||
"\bplatform\x18\x03 \x01(\tR\bplatform\x12\x1a\n" +
|
||
"\blanguage\x18\x04 \x01(\tR\blanguage\x12\x1a\n" +
|
||
"\btimezone\x18\x05 \x01(\tR\btimezone\x12!\n" +
|
||
"\fblock_reason\x18\x06 \x01(\tR\vblockReason\"8\n" +
|
||
"\x1aRecordLoginBlockedResponse\x12\x1a\n" +
|
||
"\brecorded\x18\x01 \x01(\bR\brecorded\"o\n" +
|
||
" CheckLoginRiskIPWhitelistRequest\x12.\n" +
|
||
"\x04meta\x18\x01 \x01(\v2\x1a.hyapp.user.v1.RequestMetaR\x04meta\x12\x1b\n" +
|
||
"\tclient_ip\x18\x02 \x01(\tR\bclientIp\"E\n" +
|
||
"!CheckLoginRiskIPWhitelistResponse\x12 \n" +
|
||
"\vwhitelisted\x18\x01 \x01(\bR\vwhitelisted\"W\n" +
|
||
"%RefreshLoginRiskWhitelistCacheRequest\x12.\n" +
|
||
"\x04meta\x18\x01 \x01(\v2\x1a.hyapp.user.v1.RequestMetaR\x04meta\"\xde\x01\n" +
|
||
"&RefreshLoginRiskWhitelistCacheResponse\x12\x1c\n" +
|
||
"\trefreshed\x18\x01 \x01(\bR\trefreshed\x12,\n" +
|
||
"\x12ip_whitelist_count\x18\x02 \x01(\x05R\x10ipWhitelistCount\x120\n" +
|
||
"\x14user_whitelist_count\x18\x03 \x01(\x05R\x12userWhitelistCount\x126\n" +
|
||
"\x18user_cache_expires_at_ms\x18\x04 \x01(\x03R\x14userCacheExpiresAtMs\"\xb9\x01\n" +
|
||
"\x12RegisterRiskConfig\x12\x19\n" +
|
||
"\bapp_code\x18\x01 \x01(\tR\aappCode\x125\n" +
|
||
"\x17max_accounts_per_device\x18\x02 \x01(\x05R\x14maxAccountsPerDevice\x12\"\n" +
|
||
"\rupdated_at_ms\x18\x03 \x01(\x03R\vupdatedAtMs\x12-\n" +
|
||
"\x13updated_by_admin_id\x18\x04 \x01(\x03R\x10updatedByAdminId\"N\n" +
|
||
"\x1cGetRegisterRiskConfigRequest\x12.\n" +
|
||
"\x04meta\x18\x01 \x01(\v2\x1a.hyapp.user.v1.RequestMetaR\x04meta\"Z\n" +
|
||
"\x1dGetRegisterRiskConfigResponse\x129\n" +
|
||
"\x06config\x18\x01 \x01(\v2!.hyapp.user.v1.RegisterRiskConfigR\x06config\"\xb4\x01\n" +
|
||
"\x1fUpdateRegisterRiskConfigRequest\x12.\n" +
|
||
"\x04meta\x18\x01 \x01(\v2\x1a.hyapp.user.v1.RequestMetaR\x04meta\x125\n" +
|
||
"\x17max_accounts_per_device\x18\x02 \x01(\x05R\x14maxAccountsPerDevice\x12*\n" +
|
||
"\x11operator_admin_id\x18\x03 \x01(\x03R\x0foperatorAdminId\"]\n" +
|
||
" UpdateRegisterRiskConfigResponse\x129\n" +
|
||
"\x06config\x18\x01 \x01(\v2!.hyapp.user.v1.RegisterRiskConfigR\x06config\"}\n" +
|
||
"\x13AppHeartbeatRequest\x12.\n" +
|
||
"\x04meta\x18\x01 \x01(\v2\x1a.hyapp.user.v1.RequestMetaR\x04meta\x12\x17\n" +
|
||
"\auser_id\x18\x02 \x01(\x03R\x06userId\x12\x1d\n" +
|
||
"\n" +
|
||
"session_id\x18\x03 \x01(\tR\tsessionId\"\xb0\x01\n" +
|
||
"\x14AppHeartbeatResponse\x12\x1a\n" +
|
||
"\baccepted\x18\x01 \x01(\bR\baccepted\x12&\n" +
|
||
"\x0fheartbeat_at_ms\x18\x02 \x01(\x03R\rheartbeatAtMs\x12$\n" +
|
||
"\x0eserver_time_ms\x18\x03 \x01(\x03R\fserverTimeMs\x12.\n" +
|
||
"\x05token\x18\x04 \x01(\v2\x18.hyapp.user.v1.AuthTokenR\x05token2\xba\v\n" +
|
||
"\vAuthService\x12Q\n" +
|
||
"\rLoginPassword\x12#.hyapp.user.v1.LoginPasswordRequest\x1a\x1b.hyapp.user.v1.AuthResponse\x12U\n" +
|
||
"\x0fLoginThirdParty\x12%.hyapp.user.v1.LoginThirdPartyRequest\x1a\x1b.hyapp.user.v1.AuthResponse\x12[\n" +
|
||
"\x12RegisterThirdParty\x12(.hyapp.user.v1.RegisterThirdPartyRequest\x1a\x1b.hyapp.user.v1.AuthResponse\x12~\n" +
|
||
"\x19CheckThirdPartyRegistered\x12/.hyapp.user.v1.CheckThirdPartyRegisteredRequest\x1a0.hyapp.user.v1.CheckThirdPartyRegisteredResponse\x12T\n" +
|
||
"\vSetPassword\x12!.hyapp.user.v1.SetPasswordRequest\x1a\".hyapp.user.v1.SetPasswordResponse\x12i\n" +
|
||
"\x12QuickCreateAccount\x12(.hyapp.user.v1.QuickCreateAccountRequest\x1a).hyapp.user.v1.QuickCreateAccountResponse\x12W\n" +
|
||
"\fRefreshToken\x12\".hyapp.user.v1.RefreshTokenRequest\x1a#.hyapp.user.v1.RefreshTokenResponse\x12E\n" +
|
||
"\x06Logout\x12\x1c.hyapp.user.v1.LogoutRequest\x1a\x1d.hyapp.user.v1.LogoutResponse\x12i\n" +
|
||
"\x12RecordLoginBlocked\x12(.hyapp.user.v1.RecordLoginBlockedRequest\x1a).hyapp.user.v1.RecordLoginBlockedResponse\x12~\n" +
|
||
"\x19CheckLoginRiskIPWhitelist\x12/.hyapp.user.v1.CheckLoginRiskIPWhitelistRequest\x1a0.hyapp.user.v1.CheckLoginRiskIPWhitelistResponse\x12\x8d\x01\n" +
|
||
"\x1eRefreshLoginRiskWhitelistCache\x124.hyapp.user.v1.RefreshLoginRiskWhitelistCacheRequest\x1a5.hyapp.user.v1.RefreshLoginRiskWhitelistCacheResponse\x12r\n" +
|
||
"\x15GetRegisterRiskConfig\x12+.hyapp.user.v1.GetRegisterRiskConfigRequest\x1a,.hyapp.user.v1.GetRegisterRiskConfigResponse\x12{\n" +
|
||
"\x18UpdateRegisterRiskConfig\x12..hyapp.user.v1.UpdateRegisterRiskConfigRequest\x1a/.hyapp.user.v1.UpdateRegisterRiskConfigResponse\x12W\n" +
|
||
"\fAppHeartbeat\x12\".hyapp.user.v1.AppHeartbeatRequest\x1a#.hyapp.user.v1.AppHeartbeatResponseB&Z$hyapp.local/api/proto/user/v1;userv1b\x06proto3"
|
||
|
||
var (
|
||
file_proto_user_v1_auth_proto_rawDescOnce sync.Once
|
||
file_proto_user_v1_auth_proto_rawDescData []byte
|
||
)
|
||
|
||
func file_proto_user_v1_auth_proto_rawDescGZIP() []byte {
|
||
file_proto_user_v1_auth_proto_rawDescOnce.Do(func() {
|
||
file_proto_user_v1_auth_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_proto_user_v1_auth_proto_rawDesc), len(file_proto_user_v1_auth_proto_rawDesc)))
|
||
})
|
||
return file_proto_user_v1_auth_proto_rawDescData
|
||
}
|
||
|
||
var file_proto_user_v1_auth_proto_msgTypes = make([]protoimpl.MessageInfo, 27)
|
||
var file_proto_user_v1_auth_proto_goTypes = []any{
|
||
(*LoginPasswordRequest)(nil), // 0: hyapp.user.v1.LoginPasswordRequest
|
||
(*LoginThirdPartyRequest)(nil), // 1: hyapp.user.v1.LoginThirdPartyRequest
|
||
(*RegisterThirdPartyRequest)(nil), // 2: hyapp.user.v1.RegisterThirdPartyRequest
|
||
(*CheckThirdPartyRegisteredRequest)(nil), // 3: hyapp.user.v1.CheckThirdPartyRegisteredRequest
|
||
(*CheckThirdPartyRegisteredResponse)(nil), // 4: hyapp.user.v1.CheckThirdPartyRegisteredResponse
|
||
(*AuthResponse)(nil), // 5: hyapp.user.v1.AuthResponse
|
||
(*SetPasswordRequest)(nil), // 6: hyapp.user.v1.SetPasswordRequest
|
||
(*SetPasswordResponse)(nil), // 7: hyapp.user.v1.SetPasswordResponse
|
||
(*QuickCreateAccountRequest)(nil), // 8: hyapp.user.v1.QuickCreateAccountRequest
|
||
(*QuickCreateAccountResponse)(nil), // 9: hyapp.user.v1.QuickCreateAccountResponse
|
||
(*RefreshTokenRequest)(nil), // 10: hyapp.user.v1.RefreshTokenRequest
|
||
(*RefreshTokenResponse)(nil), // 11: hyapp.user.v1.RefreshTokenResponse
|
||
(*LogoutRequest)(nil), // 12: hyapp.user.v1.LogoutRequest
|
||
(*LogoutResponse)(nil), // 13: hyapp.user.v1.LogoutResponse
|
||
(*RecordLoginBlockedRequest)(nil), // 14: hyapp.user.v1.RecordLoginBlockedRequest
|
||
(*RecordLoginBlockedResponse)(nil), // 15: hyapp.user.v1.RecordLoginBlockedResponse
|
||
(*CheckLoginRiskIPWhitelistRequest)(nil), // 16: hyapp.user.v1.CheckLoginRiskIPWhitelistRequest
|
||
(*CheckLoginRiskIPWhitelistResponse)(nil), // 17: hyapp.user.v1.CheckLoginRiskIPWhitelistResponse
|
||
(*RefreshLoginRiskWhitelistCacheRequest)(nil), // 18: hyapp.user.v1.RefreshLoginRiskWhitelistCacheRequest
|
||
(*RefreshLoginRiskWhitelistCacheResponse)(nil), // 19: hyapp.user.v1.RefreshLoginRiskWhitelistCacheResponse
|
||
(*RegisterRiskConfig)(nil), // 20: hyapp.user.v1.RegisterRiskConfig
|
||
(*GetRegisterRiskConfigRequest)(nil), // 21: hyapp.user.v1.GetRegisterRiskConfigRequest
|
||
(*GetRegisterRiskConfigResponse)(nil), // 22: hyapp.user.v1.GetRegisterRiskConfigResponse
|
||
(*UpdateRegisterRiskConfigRequest)(nil), // 23: hyapp.user.v1.UpdateRegisterRiskConfigRequest
|
||
(*UpdateRegisterRiskConfigResponse)(nil), // 24: hyapp.user.v1.UpdateRegisterRiskConfigResponse
|
||
(*AppHeartbeatRequest)(nil), // 25: hyapp.user.v1.AppHeartbeatRequest
|
||
(*AppHeartbeatResponse)(nil), // 26: hyapp.user.v1.AppHeartbeatResponse
|
||
(*RequestMeta)(nil), // 27: hyapp.user.v1.RequestMeta
|
||
(*AuthToken)(nil), // 28: hyapp.user.v1.AuthToken
|
||
}
|
||
var file_proto_user_v1_auth_proto_depIdxs = []int32{
|
||
27, // 0: hyapp.user.v1.LoginPasswordRequest.meta:type_name -> hyapp.user.v1.RequestMeta
|
||
27, // 1: hyapp.user.v1.LoginThirdPartyRequest.meta:type_name -> hyapp.user.v1.RequestMeta
|
||
27, // 2: hyapp.user.v1.RegisterThirdPartyRequest.meta:type_name -> hyapp.user.v1.RequestMeta
|
||
27, // 3: hyapp.user.v1.CheckThirdPartyRegisteredRequest.meta:type_name -> hyapp.user.v1.RequestMeta
|
||
28, // 4: hyapp.user.v1.AuthResponse.token:type_name -> hyapp.user.v1.AuthToken
|
||
27, // 5: hyapp.user.v1.SetPasswordRequest.meta:type_name -> hyapp.user.v1.RequestMeta
|
||
27, // 6: hyapp.user.v1.QuickCreateAccountRequest.meta:type_name -> hyapp.user.v1.RequestMeta
|
||
28, // 7: hyapp.user.v1.QuickCreateAccountResponse.token:type_name -> hyapp.user.v1.AuthToken
|
||
27, // 8: hyapp.user.v1.RefreshTokenRequest.meta:type_name -> hyapp.user.v1.RequestMeta
|
||
28, // 9: hyapp.user.v1.RefreshTokenResponse.token:type_name -> hyapp.user.v1.AuthToken
|
||
27, // 10: hyapp.user.v1.LogoutRequest.meta:type_name -> hyapp.user.v1.RequestMeta
|
||
27, // 11: hyapp.user.v1.RecordLoginBlockedRequest.meta:type_name -> hyapp.user.v1.RequestMeta
|
||
27, // 12: hyapp.user.v1.CheckLoginRiskIPWhitelistRequest.meta:type_name -> hyapp.user.v1.RequestMeta
|
||
27, // 13: hyapp.user.v1.RefreshLoginRiskWhitelistCacheRequest.meta:type_name -> hyapp.user.v1.RequestMeta
|
||
27, // 14: hyapp.user.v1.GetRegisterRiskConfigRequest.meta:type_name -> hyapp.user.v1.RequestMeta
|
||
20, // 15: hyapp.user.v1.GetRegisterRiskConfigResponse.config:type_name -> hyapp.user.v1.RegisterRiskConfig
|
||
27, // 16: hyapp.user.v1.UpdateRegisterRiskConfigRequest.meta:type_name -> hyapp.user.v1.RequestMeta
|
||
20, // 17: hyapp.user.v1.UpdateRegisterRiskConfigResponse.config:type_name -> hyapp.user.v1.RegisterRiskConfig
|
||
27, // 18: hyapp.user.v1.AppHeartbeatRequest.meta:type_name -> hyapp.user.v1.RequestMeta
|
||
28, // 19: hyapp.user.v1.AppHeartbeatResponse.token:type_name -> hyapp.user.v1.AuthToken
|
||
0, // 20: hyapp.user.v1.AuthService.LoginPassword:input_type -> hyapp.user.v1.LoginPasswordRequest
|
||
1, // 21: hyapp.user.v1.AuthService.LoginThirdParty:input_type -> hyapp.user.v1.LoginThirdPartyRequest
|
||
2, // 22: hyapp.user.v1.AuthService.RegisterThirdParty:input_type -> hyapp.user.v1.RegisterThirdPartyRequest
|
||
3, // 23: hyapp.user.v1.AuthService.CheckThirdPartyRegistered:input_type -> hyapp.user.v1.CheckThirdPartyRegisteredRequest
|
||
6, // 24: hyapp.user.v1.AuthService.SetPassword:input_type -> hyapp.user.v1.SetPasswordRequest
|
||
8, // 25: hyapp.user.v1.AuthService.QuickCreateAccount:input_type -> hyapp.user.v1.QuickCreateAccountRequest
|
||
10, // 26: hyapp.user.v1.AuthService.RefreshToken:input_type -> hyapp.user.v1.RefreshTokenRequest
|
||
12, // 27: hyapp.user.v1.AuthService.Logout:input_type -> hyapp.user.v1.LogoutRequest
|
||
14, // 28: hyapp.user.v1.AuthService.RecordLoginBlocked:input_type -> hyapp.user.v1.RecordLoginBlockedRequest
|
||
16, // 29: hyapp.user.v1.AuthService.CheckLoginRiskIPWhitelist:input_type -> hyapp.user.v1.CheckLoginRiskIPWhitelistRequest
|
||
18, // 30: hyapp.user.v1.AuthService.RefreshLoginRiskWhitelistCache:input_type -> hyapp.user.v1.RefreshLoginRiskWhitelistCacheRequest
|
||
21, // 31: hyapp.user.v1.AuthService.GetRegisterRiskConfig:input_type -> hyapp.user.v1.GetRegisterRiskConfigRequest
|
||
23, // 32: hyapp.user.v1.AuthService.UpdateRegisterRiskConfig:input_type -> hyapp.user.v1.UpdateRegisterRiskConfigRequest
|
||
25, // 33: hyapp.user.v1.AuthService.AppHeartbeat:input_type -> hyapp.user.v1.AppHeartbeatRequest
|
||
5, // 34: hyapp.user.v1.AuthService.LoginPassword:output_type -> hyapp.user.v1.AuthResponse
|
||
5, // 35: hyapp.user.v1.AuthService.LoginThirdParty:output_type -> hyapp.user.v1.AuthResponse
|
||
5, // 36: hyapp.user.v1.AuthService.RegisterThirdParty:output_type -> hyapp.user.v1.AuthResponse
|
||
4, // 37: hyapp.user.v1.AuthService.CheckThirdPartyRegistered:output_type -> hyapp.user.v1.CheckThirdPartyRegisteredResponse
|
||
7, // 38: hyapp.user.v1.AuthService.SetPassword:output_type -> hyapp.user.v1.SetPasswordResponse
|
||
9, // 39: hyapp.user.v1.AuthService.QuickCreateAccount:output_type -> hyapp.user.v1.QuickCreateAccountResponse
|
||
11, // 40: hyapp.user.v1.AuthService.RefreshToken:output_type -> hyapp.user.v1.RefreshTokenResponse
|
||
13, // 41: hyapp.user.v1.AuthService.Logout:output_type -> hyapp.user.v1.LogoutResponse
|
||
15, // 42: hyapp.user.v1.AuthService.RecordLoginBlocked:output_type -> hyapp.user.v1.RecordLoginBlockedResponse
|
||
17, // 43: hyapp.user.v1.AuthService.CheckLoginRiskIPWhitelist:output_type -> hyapp.user.v1.CheckLoginRiskIPWhitelistResponse
|
||
19, // 44: hyapp.user.v1.AuthService.RefreshLoginRiskWhitelistCache:output_type -> hyapp.user.v1.RefreshLoginRiskWhitelistCacheResponse
|
||
22, // 45: hyapp.user.v1.AuthService.GetRegisterRiskConfig:output_type -> hyapp.user.v1.GetRegisterRiskConfigResponse
|
||
24, // 46: hyapp.user.v1.AuthService.UpdateRegisterRiskConfig:output_type -> hyapp.user.v1.UpdateRegisterRiskConfigResponse
|
||
26, // 47: hyapp.user.v1.AuthService.AppHeartbeat:output_type -> hyapp.user.v1.AppHeartbeatResponse
|
||
34, // [34:48] is the sub-list for method output_type
|
||
20, // [20:34] is the sub-list for method input_type
|
||
20, // [20:20] is the sub-list for extension type_name
|
||
20, // [20:20] is the sub-list for extension extendee
|
||
0, // [0:20] is the sub-list for field type_name
|
||
}
|
||
|
||
func init() { file_proto_user_v1_auth_proto_init() }
|
||
func file_proto_user_v1_auth_proto_init() {
|
||
if File_proto_user_v1_auth_proto != nil {
|
||
return
|
||
}
|
||
file_proto_user_v1_user_proto_init()
|
||
type x struct{}
|
||
out := protoimpl.TypeBuilder{
|
||
File: protoimpl.DescBuilder{
|
||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_proto_user_v1_auth_proto_rawDesc), len(file_proto_user_v1_auth_proto_rawDesc)),
|
||
NumEnums: 0,
|
||
NumMessages: 27,
|
||
NumExtensions: 0,
|
||
NumServices: 1,
|
||
},
|
||
GoTypes: file_proto_user_v1_auth_proto_goTypes,
|
||
DependencyIndexes: file_proto_user_v1_auth_proto_depIdxs,
|
||
MessageInfos: file_proto_user_v1_auth_proto_msgTypes,
|
||
}.Build()
|
||
File_proto_user_v1_auth_proto = out.File
|
||
file_proto_user_v1_auth_proto_goTypes = nil
|
||
file_proto_user_v1_auth_proto_depIdxs = nil
|
||
}
|