constant

package
v0.0.0-...-b32e05d Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//1公开 2私密 3评论可见
	ArticleStatusPublic  = 1
	ArticleStatusPrivate = 2
	ArticleStatusComment = 3
)
View Source
const (
	//0未删除 1已删除
	ArticleIsDeleteUnused = -1
	ArticleIsDeleteNo     = 2
	ArticleIsDeleteYes    = 1

	//0未置顶 1置顶
	ArticleIsTopUnused = -1
	ArticleIsTopNo     = 2
	ArticleIsTopYes    = 1
)
View Source
const (
	OnlineCount   = iota + 1 // 在线人数
	HistoryRecord            // 历史记录
	SendMessage              // 发送消息
	RecallMessage            // 撤回消息
	HeartBeat                // 心跳消息
	ClientInfo               // 客户端信息
)

定义ChatTypeEnum的可能值。

View Source
const (
	ResetPwd  = "reset_pwd"
	Register  = "register"
	BindEmail = "bind_email"
)
View Source
const (
	// email交换机
	EmailExchange = "email_exchange"
	// email队列
	EmailQueue = "email_queue"
)
View Source
const (
	LoginTypeEmail  = "email" // 邮箱登录
	LoginTypeMobile = "phone" // 手机登录
	LoginTypeOauth  = "oauth" // 第三方登录
)

登录类型

View Source
const (
	UserStatusDeleted  = -1
	UserStatusNormal   = 0
	UserStatusDisabled = 1
)

用户状态

Variables

This section is empty.

Functions

This section is empty.

Types

type ChatTypeEnum

type ChatTypeEnum int

ChatTypeEnum 代表聊天消息的类型。

Jump to

Keyboard shortcuts

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