thread-master/apps/backend/internal/module/member/domain/const.go

41 lines
1.0 KiB
Go
Raw Normal View History

2026-07-10 12:54:45 +00:00
package domain
// Platform — stand-alone const_platform 精神(字串 API內部可對照
const (
PlatformPassword = "platform" // email/phone + password
PlatformGoogle = "google"
PlatformLine = "line"
PlatformApple = "apple"
)
// AccountType — stand-alone account type
const (
AccountTypeEmail = "email"
AccountTypePhone = "phone"
AccountTypePlatform = "platform" // third-party subject
)
// Status — stand-alone member status字串對齊 FE
const (
StatusUninitialized = "uninitialized"
StatusUnverified = "unverified"
StatusActive = "active"
StatusSuspended = "suspended"
)
// CodeType for generate/verify codes
const (
CodeTypeEmail = "email"
CodeTypePhone = "phone"
CodeTypeForgetPassword = "forget_password"
)
const (
RoleMember = "member"
RoleAdmin = "admin"
)
// MinMemberUID — 會員 uid 從一百萬起,固定 8 位數100000099999999
// 顯示可用 %08d內部 JSON 仍是 number。
const MinMemberUID int64 = 1_000_000