Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
24 lines
578 B
Go
24 lines
578 B
Go
package pubdef
|
|
|
|
type UserStatus int32
|
|
|
|
const (
|
|
UserStatusNormal UserStatus = 0 // 正常
|
|
UserStatusDisable UserStatus = 1 // 封禁
|
|
UserStatusSlient UserStatus = 2 // 禁言
|
|
)
|
|
|
|
var UserStatusMap = map[UserStatus]string{
|
|
UserStatusNormal: "正常",
|
|
UserStatusDisable: "封禁",
|
|
UserStatusSlient: "禁止登陆",
|
|
}
|
|
|
|
type LoginType int32
|
|
|
|
const (
|
|
LoginTypeDevice LoginType = 0 + iota // 设备登陆
|
|
LoginTypeMobile // 手机登陆
|
|
LoginTypeQrCode // 二维码登陆
|
|
LoginTypeAccount // 账号登陆
|
|
) |