app-cloudep-member-server/internal/domain/const.go

41 lines
677 B
Go
Raw Permalink Normal View History

package domain
2024-08-24 06:46:26 +00:00
import "time"
const (
DefaultPageSize = 100
DefaultPageIndex = 1
)
const InitAutoId = 10000000
const DefaultReferralCodeLen = 8
var ConvertTable = [...]string{
"O", "D", "W", "X", "Y",
"G", "B", "C", "H", "E",
"F", "A", "Q", "I", "J",
"L", "M", "N", "Z", "K",
"P", "V", "R", "S", "T",
}
type AccountType int8
func (a AccountType) ToInt64() int64 {
return int64(a)
}
const (
AccountTypePhone AccountType = 1
AccountTypeMail AccountType = 2
AccountTypeAccount AccountType = 3
)
2024-08-24 06:46:26 +00:00
const (
DefaultSingleFlyCacheTimeout = 24 * time.Hour
DefaultFindDataNotFoundTimeout = 30 * time.Second
)
const (
AppName = "app-cloudep-member-service"
)