72 lines
1.6 KiB
Go
72 lines
1.6 KiB
Go
package consts
|
|
|
|
const (
|
|
RetCodeSuccess = 1
|
|
RetCodeFail = -1
|
|
)
|
|
|
|
const (
|
|
ErrorCodeSuccess = 1
|
|
ErrorCodeFail = -1
|
|
)
|
|
|
|
// 分页查询
|
|
const (
|
|
DefaultPageSize = 10 //默认页长为10
|
|
)
|
|
|
|
// 设备类型
|
|
const (
|
|
DevType_Android = 0
|
|
DevType_Ios = 1
|
|
)
|
|
|
|
// apollo_config
|
|
const (
|
|
MaxPswdWrongTimesKey = "max_pswd_wrong_times"
|
|
MaxVeriCodeValidDurationKey = "max_veri_code_valid_duration"
|
|
IosKey = "ios"
|
|
AndroidKey = "android"
|
|
AccountInitKey = "account_init"
|
|
TagNumKey = "tag_num"
|
|
PlatformNumKey = "platform_num"
|
|
SupportWxIdNumKey = "support_wx_id_num"
|
|
)
|
|
|
|
// del_flag
|
|
const (
|
|
Exist = 0 //存在
|
|
Deleted = 1 //已删除
|
|
)
|
|
|
|
// 默认login初始化配置
|
|
const (
|
|
OriginalLoginMid = -1
|
|
OriginalLoginPassword = "C114B58B8B7E435F2EA353A83E63E123"
|
|
OriginalLoginPhoneHash = ""
|
|
OriginalLoginRegionCode = "86"
|
|
OriginalLoginIsLogined = 0
|
|
OriginalLoginLastLoginTime = 0
|
|
OriginalLoginWrongPswdTimes = 0
|
|
OriginalLoginIsEnabled = 0
|
|
OriginalLoginIsLocked = 0
|
|
OriginalLoginIsBanned = 0
|
|
)
|
|
|
|
// redis键前缀
|
|
const (
|
|
RedisStreamerPrefix = "streamer:" //streamer服务前缀
|
|
)
|
|
|
|
//const PackageRootPath = "/Users/PC/Desktop/wishpal-ironfan"
|
|
|
|
const PackageRootPath = "/app/wishpal-ironfan"
|
|
|
|
const MainConfigPath = PackageRootPath + "/etc/mix/mix-test.yaml"
|
|
|
|
const ProductionConfigPath = PackageRootPath + "/etc/mix/mix-prod.yaml"
|
|
|
|
const LocalConfigPath = "/Users/erwin/wishpal/wishpal-ironfan/etc/mix/mix-local.yaml"
|
|
|
|
const ReservedUserIdRegexesConfig = PackageRootPath + "/etc/mix/resource/reg_reserved_user_id_config.xml"
|