mirror of
https://github.com/chaitin/MonkeyCode.git
synced 2026-02-02 06:43:23 +08:00
41 lines
744 B
Go
41 lines
744 B
Go
package consts
|
|
|
|
const (
|
|
UserActiveKeyFmt = "user:active:%s"
|
|
AdminActiveKeyFmt = "admin:active:%s"
|
|
)
|
|
|
|
type UserStatus string
|
|
|
|
const (
|
|
UserStatusActive UserStatus = "active"
|
|
UserStatusInactive UserStatus = "inactive"
|
|
UserStatusLocked UserStatus = "locked"
|
|
)
|
|
|
|
const (
|
|
SessionName = "monkeycode_session"
|
|
)
|
|
|
|
type UserPlatform string
|
|
|
|
const (
|
|
UserPlatformEmail UserPlatform = "email"
|
|
UserPlatformDingTalk UserPlatform = "dingtalk"
|
|
UserPlatformCustom UserPlatform = "custom"
|
|
)
|
|
|
|
type OAuthKind string
|
|
|
|
const (
|
|
OAuthKindInvite OAuthKind = "invite"
|
|
OAuthKindLogin OAuthKind = "login"
|
|
)
|
|
|
|
type InviteCodeStatus string
|
|
|
|
const (
|
|
InviteCodeStatusPending InviteCodeStatus = "pending"
|
|
InviteCodeStatusUsed InviteCodeStatus = "used"
|
|
)
|