2025-10-01 16:30:27 +00:00
|
|
|
// Package domain defines the core domain entities, constants, and business rules
|
|
|
|
// for the member service. It contains the fundamental building blocks that
|
|
|
|
// represent the business concepts and their relationships.
|
|
|
|
package domain
|
|
|
|
|
|
|
|
// Business constants for the member service
|
|
|
|
const (
|
|
|
|
// DefaultBcryptCost is the default cost for bcrypt password hashing
|
|
|
|
DefaultBcryptCost = 10
|
2025-10-02 06:43:57 +00:00
|
|
|
|
2025-10-01 16:30:27 +00:00
|
|
|
// MinPasswordLength is the minimum required password length
|
|
|
|
MinPasswordLength = 8
|
2025-10-02 06:43:57 +00:00
|
|
|
|
2025-10-01 16:30:27 +00:00
|
|
|
// MaxPasswordLength is the maximum allowed password length
|
|
|
|
MaxPasswordLength = 128
|
2025-10-02 06:43:57 +00:00
|
|
|
|
2025-10-01 16:30:27 +00:00
|
|
|
// DefaultVerifyCodeDigits is the default number of digits for verification codes
|
|
|
|
DefaultVerifyCodeDigits = 6
|
2025-10-02 06:43:57 +00:00
|
|
|
|
2025-10-01 16:30:27 +00:00
|
|
|
// MinVerifyCodeDigits is the minimum number of digits for verification codes
|
|
|
|
MinVerifyCodeDigits = 4
|
2025-10-02 06:43:57 +00:00
|
|
|
|
2025-10-01 16:30:27 +00:00
|
|
|
// MaxVerifyCodeDigits is the maximum number of digits for verification codes
|
|
|
|
MaxVerifyCodeDigits = 10
|
2025-10-02 06:43:57 +00:00
|
|
|
|
2025-10-01 16:30:27 +00:00
|
|
|
// DefaultCacheExpiration is the default cache expiration time in seconds
|
|
|
|
DefaultCacheExpiration = 3600
|
2025-10-02 06:43:57 +00:00
|
|
|
|
2025-10-01 16:30:27 +00:00
|
|
|
// MaxRetryAttempts is the maximum number of retry attempts for operations
|
|
|
|
MaxRetryAttempts = 3
|
|
|
|
)
|