v2

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AccountType_name = map[int32]string{
		0: "Phone",
		1: "Email",
		2: "UserName",
	}
	AccountType_value = map[string]int32{
		"Phone":    0,
		"Email":    1,
		"UserName": 2,
	}
)

Enum value maps for AccountType.

View Source
var (
	Gender_name = map[int32]string{
		0: "GENDER_UNKNOWN",
		1: "GENDER_FEMALE",
		2: "GENDER_MALE",
	}
	Gender_value = map[string]int32{
		"GENDER_UNKNOWN": 0,
		"GENDER_FEMALE":  1,
		"GENDER_MALE":    2,
	}
)

Enum value maps for Gender.

View Source
var (
	AccountStatus_name = map[int32]string{
		0: "ACCOUNT_STATUS_UNKNOWN",
		1: "ACCOUNT_STATUS_NORMAL",
		2: "ACCOUNT_STATUS_FREEZE",
	}
	AccountStatus_value = map[string]int32{
		"ACCOUNT_STATUS_UNKNOWN": 0,
		"ACCOUNT_STATUS_NORMAL":  1,
		"ACCOUNT_STATUS_FREEZE":  2,
	}
)

Enum value maps for AccountStatus.

View Source
var (
	Terminal_name = map[int32]string{
		0: "TerminalPC",
		1: "TerminalMobile",
		2: "TerminalWeb",
	}
	Terminal_value = map[string]int32{
		"TerminalPC":     0,
		"TerminalMobile": 1,
		"TerminalWeb":    2,
	}
)

Enum value maps for Terminal.

View Source
var (
	Platform_name = map[int32]string{
		0: "IOS",
		1: "Android",
		2: "Windows",
		3: "OSX",
		4: "Web",
		5: "MiniWeb",
		6: "Linux",
		7: "APad",
		8: "IPad",
	}
	Platform_value = map[string]int32{
		"IOS":     0,
		"Android": 1,
		"Windows": 2,
		"OSX":     3,
		"Web":     4,
		"MiniWeb": 5,
		"Linux":   6,
		"APad":    7,
		"IPad":    8,
	}
)

Enum value maps for Platform.

View Source
var (
	MultiDeviceOnlineStrategy_name = map[int32]string{
		0: "DefNotKick",
		1: "AllLoginButSameTermKick",
		2: "SingleTerminalLogin",
		3: "WebAndOther",
		4: "PCAndOther",
	}
	MultiDeviceOnlineStrategy_value = map[string]int32{
		"DefNotKick":              0,
		"AllLoginButSameTermKick": 1,
		"SingleTerminalLogin":     2,
		"WebAndOther":             3,
		"PCAndOther":              4,
	}
)

Enum value maps for MultiDeviceOnlineStrategy.

View Source
var File_common_enum_v2_enums_proto protoreflect.FileDescriptor
View Source
var File_common_enum_v2_plalfim_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AccountStatus

type AccountStatus int32

账号状态

const (
	AccountStatus_ACCOUNT_STATUS_UNKNOWN AccountStatus = 0 // 状态未知
	AccountStatus_ACCOUNT_STATUS_NORMAL  AccountStatus = 1 // 状态正常
	AccountStatus_ACCOUNT_STATUS_FREEZE  AccountStatus = 2 // 状态冻结
)

func (AccountStatus) Descriptor

func (AccountStatus) Enum

func (x AccountStatus) Enum() *AccountStatus

func (AccountStatus) EnumDescriptor deprecated

func (AccountStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use AccountStatus.Descriptor instead.

func (AccountStatus) Number

func (AccountStatus) String

func (x AccountStatus) String() string

func (AccountStatus) Type

type AccountType

type AccountType int32

账号类型

const (
	AccountType_Phone    AccountType = 0 //手机号
	AccountType_Email    AccountType = 1 //邮箱
	AccountType_UserName AccountType = 2 //用户名密码注册
)

func (AccountType) Descriptor

func (AccountType) Enum

func (x AccountType) Enum() *AccountType

func (AccountType) EnumDescriptor deprecated

func (AccountType) EnumDescriptor() ([]byte, []int)

Deprecated: Use AccountType.Descriptor instead.

func (AccountType) Number

func (x AccountType) Number() protoreflect.EnumNumber

func (AccountType) String

func (x AccountType) String() string

func (AccountType) Type

type Gender

type Gender int32
const (
	Gender_GENDER_UNKNOWN Gender = 0 // 未知
	Gender_GENDER_FEMALE  Gender = 1 // 男
	Gender_GENDER_MALE    Gender = 2 // 女
)

func (Gender) Descriptor

func (Gender) Descriptor() protoreflect.EnumDescriptor

func (Gender) Enum

func (x Gender) Enum() *Gender

func (Gender) EnumDescriptor deprecated

func (Gender) EnumDescriptor() ([]byte, []int)

Deprecated: Use Gender.Descriptor instead.

func (Gender) Number

func (x Gender) Number() protoreflect.EnumNumber

func (Gender) String

func (x Gender) String() string

func (Gender) Type

func (Gender) Type() protoreflect.EnumType

type MultiDeviceOnlineStrategy

type MultiDeviceOnlineStrategy int32

多设备在线策略

const (
	MultiDeviceOnlineStrategy_DefNotKick              MultiDeviceOnlineStrategy = 0 //默认多端不互踢都可以在线
	MultiDeviceOnlineStrategy_AllLoginButSameTermKick MultiDeviceOnlineStrategy = 1 //全端都可以登录,但是同一端互踢
	MultiDeviceOnlineStrategy_SingleTerminalLogin     MultiDeviceOnlineStrategy = 2 //只有一个终端能够登录
	MultiDeviceOnlineStrategy_WebAndOther             MultiDeviceOnlineStrategy = 3 //web端可以同时在线,另一端只能登录
	MultiDeviceOnlineStrategy_PCAndOther              MultiDeviceOnlineStrategy = 4 //PC终端可以同时在线,但其他终端只能登录其中一个端点
)

func (MultiDeviceOnlineStrategy) Descriptor

func (MultiDeviceOnlineStrategy) Enum

func (MultiDeviceOnlineStrategy) EnumDescriptor deprecated

func (MultiDeviceOnlineStrategy) EnumDescriptor() ([]byte, []int)

Deprecated: Use MultiDeviceOnlineStrategy.Descriptor instead.

func (MultiDeviceOnlineStrategy) Number

func (MultiDeviceOnlineStrategy) String

func (x MultiDeviceOnlineStrategy) String() string

func (MultiDeviceOnlineStrategy) Type

type Platform

type Platform int32

设备平台

const (
	Platform_IOS     Platform = 0
	Platform_Android Platform = 1
	Platform_Windows Platform = 2
	Platform_OSX     Platform = 3 //mac os
	Platform_Web     Platform = 4 //网页
	Platform_MiniWeb Platform = 5 //迷你web
	Platform_Linux   Platform = 6 //Linux设备
	Platform_APad    Platform = 7 //安卓平板
	Platform_IPad    Platform = 8 //苹果平板
)

func (Platform) Descriptor

func (Platform) Descriptor() protoreflect.EnumDescriptor

func (Platform) Enum

func (x Platform) Enum() *Platform

func (Platform) EnumDescriptor deprecated

func (Platform) EnumDescriptor() ([]byte, []int)

Deprecated: Use Platform.Descriptor instead.

func (Platform) Number

func (x Platform) Number() protoreflect.EnumNumber

func (Platform) String

func (x Platform) String() string

func (Platform) Type

type Terminal

type Terminal int32

终端

const (
	Terminal_TerminalPC     Terminal = 0
	Terminal_TerminalMobile Terminal = 1
	Terminal_TerminalWeb    Terminal = 2
)

func (Terminal) Descriptor

func (Terminal) Descriptor() protoreflect.EnumDescriptor

func (Terminal) Enum

func (x Terminal) Enum() *Terminal

func (Terminal) EnumDescriptor deprecated

func (Terminal) EnumDescriptor() ([]byte, []int)

Deprecated: Use Terminal.Descriptor instead.

func (Terminal) Number

func (x Terminal) Number() protoreflect.EnumNumber

func (Terminal) String

func (x Terminal) String() string

func (Terminal) Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL