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

41 lines
1.0 KiB
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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