90 lines
2.2 KiB
Go
90 lines
2.2 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
|
||
)
|
||
|
||
// 接口类型
|
||
const (
|
||
InterfaceType_Op = 0
|
||
InterfaceType_Api = 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"
|
||
MaxDailyVeriCodeSendTimesKey = "max_daily_veri_code_send_times"
|
||
ImageIdForUploadFail = "image_id_for_upload_fail"
|
||
VideoIdForUploadFail = "video_id_for_upload_fail"
|
||
RestrictedVisitorKey = "restricted_visitor"
|
||
MaxDailyMomentCreateTimesKey = "max_daily_moment_create_times"
|
||
DefaultMomentTextKey = "default_moment_text"
|
||
)
|
||
|
||
// 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 = "C:/Users/PC/Desktop/wishpal_ironfan_service/service"
|
||
|
||
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"
|
||
|
||
// H5调用路径
|
||
const H5CallUrl = "/api/streamer/list_ext_by_user_id"
|
||
|
||
// 应用上线时间,2024-01-02 14:00:00
|
||
const AppEnterProductionTime = 1704175200
|