constant

package
v1.2.11 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// verificationCode used for.
	VerificationCodeForRegister      = 1 // 注册
	VerificationCodeForResetPassword = 2 // 重置密码
	VerificationCodeForLogin         = 3 // 登录

	VerificationCodeForRegisterSuffix = "_forRegister"
	VerificationCodeForResetSuffix    = "_forReset"
	VerificationCodeForLoginSuffix    = "_forLogin"
)
View Source
const (
	BlockUser   = 1
	UnblockUser = 2
)

block unblock.

View Source
const (
	Email   = "email"
	Phone   = "phone"
	Account = "account"
)

AccountType.

View Source
const (
	UserMode  = "user"
	AdminMode = "admin"
)

Mode.

View Source
const (
	OrdinaryUserLevel = 1
	AdvancedUserLevel = 100
)

user level.

View Source
const (
	OrdinaryUserAddFriendEnable  = 1  // 允许普通用户添加好友
	OrdinaryUserAddFriendDisable = -1 // 不允许普通用户添加好友
)

AddFriendCtrl.

View Source
const (
	OtherType = 1
	VideoType = 2
	ImageType = 3
)

minioUpload.

View Source
const (
	ActionAllow     = 0
	ActionForbidden = 1
)

callback Action.

View Source
const (
	ScreenInvitationRegisterAll     = 0 // 全部
	ScreenInvitationRegisterUsed    = 1 // 已使用
	ScreenInvitationRegisterNotUsed = 2 // 未使用
)
View Source
const (
	UserBlock   = 1 // 封号
	UserUnblock = 2 // 解封
)

1 block; 2 unblock.

View Source
const (
	NormalUser = 1
	AdminUser  = 2
)
View Source
const (
	DoNotDisturbModeDisable = 1
	DoNotDisturbModeEnable  = 2
)
View Source
const (
	AllowAddFriend    = 1
	NotAllowAddFriend = 2
)
View Source
const (
	AllowBeep    = 1
	NotAllowBeep = 2
)
View Source
const (
	AllowVibration    = 1
	NotAllowVibration = 2
)
View Source
const (
	AllowSendMsgNotFriend    = 1
	NotAllowSendMsgNotFriend = 2
)
View Source
const (
	NotNeedInvitationCodeRegister = 0 // 不需要邀请码
	NeedInvitationCodeRegister    = 1 // 需要邀请码
)
View Source
const (
	StatusOnShelf = 1 // 上架
	StatusUnShelf = 2 // 下架
)

小程序.

View Source
const (
	LimitIP    = 1
	NotLimitIP = 0
)
View Source
const (
	LimitNil             = 0 // 无
	LimitEmpty           = 1 // 都不限制
	LimitOnlyLoginIP     = 2 // 仅限制登录
	LimitOnlyRegisterIP  = 3 // 仅限制注册
	LimitLoginIP         = 4 // 限制登录
	LimitRegisterIP      = 5 // 限制注册
	LimitLoginRegisterIP = 6 // 限制登录注册
)
View Source
const (
	InvitationCodeUnused = 0 // 全部
	InvitationCodeUsed   = 1 // 已使用
	InvitationCodeAll    = 2 // 未使用
)
View Source
const (
	RpcOperationID = constant.OperationID
	RpcOpUserID    = constant.OpUserID
	RpcOpUserType  = "opUserType"
)

const OperationID = "operationID" const OpUserID = "opUserID".

View Source
const (
	DefaultAllowVibration = 1
	DefaultAllowBeep      = 1
	DefaultAllowAddFriend = 1
)
View Source
const (
	FindNormalUser = 1
	FinDAllUser    = 2
)
View Source
const (
	ShowNumber             = 1000
	StatisticsTimeInterval = 60
	MaxNotificationNum     = 500
)
View Source
const DefaultDiscoverPageURL = "https://doc.rentsoft.cn/#/"

默认发现页面.

View Source
const LogFileName = "chat.log"
View Source
const NeedInvitationCodeRegisterConfigKey = "NeedInvitationCodeRegister"
View Source
const RpcCustomHeader = constant.RpcCustomHeader

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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