31 lines
523 B
Go
31 lines
523 B
Go
package domain
|
|
|
|
const (
|
|
DefaultPageSize = 100
|
|
DefaultPageIndex = 1
|
|
Scope = 10
|
|
)
|
|
|
|
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
|
|
)
|