2023-12-21 22:17:40 +08:00
|
|
|
|
package consts
|
|
|
|
|
|
|
|
|
|
const (
|
|
|
|
|
RetCodeSuccess = 1
|
|
|
|
|
RetCodeFail = -1
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
const (
|
|
|
|
|
ErrorCodeSuccess = 1
|
|
|
|
|
ErrorCodeFail = -1
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// 分页查询
|
|
|
|
|
const (
|
|
|
|
|
DefaultPageSize = 10 //默认页长为10
|
|
|
|
|
)
|
|
|
|
|
|
2024-03-08 00:42:42 +08:00
|
|
|
|
// 推荐每次吞吐量
|
|
|
|
|
const (
|
|
|
|
|
StreamerRecommThroughput = 4
|
|
|
|
|
MomentRecommThroughput = 4
|
|
|
|
|
)
|
|
|
|
|
|
2023-12-21 22:17:40 +08:00
|
|
|
|
// 设备类型
|
|
|
|
|
const (
|
|
|
|
|
DevType_Android = 0
|
|
|
|
|
DevType_Ios = 1
|
|
|
|
|
)
|
|
|
|
|
|
2024-01-17 19:18:23 +08:00
|
|
|
|
// 接口类型
|
|
|
|
|
const (
|
|
|
|
|
InterfaceType_Op = 0
|
|
|
|
|
InterfaceType_Api = 1
|
|
|
|
|
)
|
|
|
|
|
|
2023-12-21 22:17:40 +08:00
|
|
|
|
// apollo_config
|
|
|
|
|
const (
|
2024-06-24 19:14:31 +08:00
|
|
|
|
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"
|
|
|
|
|
MaxDailyZoneMomentCreateTimesKey = "max_daily_zone_moment_create_times"
|
|
|
|
|
ReferentialZoneMomentKey = "referential_zone_moment"
|
|
|
|
|
IsMomentImageEncryptEnabledKey = "is_moment_image_encrypt_enabled"
|
|
|
|
|
RestrictedVisitorMomentKey = "restricted_visitor_moment"
|
|
|
|
|
AppConfigReflectKey = "app_config_reflect"
|
|
|
|
|
ZoneVIPConfigKey = "zone_vip_config"
|
|
|
|
|
StreamerScoreFormulaKey = "streamer_score_formula"
|
|
|
|
|
HvyogoSingleDistributeChargePercentageKey = "hvyogo_single_distribute_charge_percentage"
|
2024-07-25 21:35:25 +08:00
|
|
|
|
AutoResponseKey = "auto_response"
|
2024-07-19 17:46:58 +08:00
|
|
|
|
QuestionMapKey = "question_map"
|
2024-07-19 18:31:15 +08:00
|
|
|
|
AgeScore2IQResultMapKey = "age_score_2_IQ_result_map"
|
2024-07-22 09:17:49 +08:00
|
|
|
|
ClassScore2ClassResultMapKey = "class_score_2_class_result_map"
|
2024-07-19 18:31:15 +08:00
|
|
|
|
IQResultMapKey = "IQ_result_map"
|
2024-07-22 09:17:49 +08:00
|
|
|
|
ClassResultMapKey = "class_result_map"
|
2024-07-29 15:48:39 +08:00
|
|
|
|
DefaultZoneTextKey = "default_zone_text"
|
2024-07-30 15:35:27 +08:00
|
|
|
|
AuditTaskCollectionReflectKey = "audit_task_collection_reflect"
|
2024-08-16 06:14:55 +08:00
|
|
|
|
StreamerFilterKey = "streamer_filter"
|
2023-12-21 22:17:40 +08:00
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// 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服务前缀
|
2024-03-08 21:14:40 +08:00
|
|
|
|
RedisMomentPrefix = "moment:" //moment服务前缀
|
2023-12-21 22:17:40 +08:00
|
|
|
|
)
|
|
|
|
|
|
2024-05-23 04:10:10 +08:00
|
|
|
|
//const PackageRootPath = "C:/Users/PC/Desktop/service"
|
2023-12-21 22:17:40 +08:00
|
|
|
|
|
2024-05-23 04:10:10 +08:00
|
|
|
|
const PackageRootPath = "/app/wishpal-ironfan"
|
2023-12-21 22:17:40 +08:00
|
|
|
|
|
2024-05-30 15:23:40 +08:00
|
|
|
|
//const OfflinePackageRootPath = "C:/Users/PC/Desktop/service"
|
|
|
|
|
|
2024-05-24 04:09:24 +08:00
|
|
|
|
const OfflinePackageRootPath = "/app/wishpal-ironfan-offline"
|
|
|
|
|
|
2023-12-21 22:17:40 +08:00
|
|
|
|
const MainConfigPath = PackageRootPath + "/etc/mix/mix-test.yaml"
|
|
|
|
|
|
2024-05-24 04:09:24 +08:00
|
|
|
|
const MainOfflineConfigPath = OfflinePackageRootPath + "/etc/mix/mix-test-offline.yaml"
|
2024-05-24 03:52:57 +08:00
|
|
|
|
|
2023-12-24 11:59:24 +08:00
|
|
|
|
const ProductionConfigPath = PackageRootPath + "/etc/mix/mix-prod.yaml"
|
|
|
|
|
|
2024-05-24 04:09:24 +08:00
|
|
|
|
const ProductionOfflineConfigPath = OfflinePackageRootPath + "/etc/mix/mix-prod-offline.yaml"
|
2024-05-24 03:52:57 +08:00
|
|
|
|
|
2024-03-08 00:42:42 +08:00
|
|
|
|
const LocalConfigPath = "C:/Users/PC/Desktop/service/etc/mix/mix-local.yaml"
|
2023-12-21 22:17:40 +08:00
|
|
|
|
|
|
|
|
|
const ReservedUserIdRegexesConfig = PackageRootPath + "/etc/mix/resource/reg_reserved_user_id_config.xml"
|
2024-01-03 16:16:41 +08:00
|
|
|
|
|
2024-06-17 22:25:43 +08:00
|
|
|
|
const EsbRoutingTableConfig = PackageRootPath + "/etc/mix/resource/esb_routing_table_config.xml"
|
|
|
|
|
|
2024-01-03 16:16:41 +08:00
|
|
|
|
// H5调用路径
|
|
|
|
|
const H5CallUrl = "/api/streamer/list_ext_by_user_id"
|
|
|
|
|
|
2024-04-28 21:33:24 +08:00
|
|
|
|
// 站外user_id访问zone调用路径
|
|
|
|
|
const ZoneListFromOutsideCountCallUrl = "/api/zone/list_by_user_id_from_outside"
|
|
|
|
|
|
2024-01-03 16:16:41 +08:00
|
|
|
|
// 应用上线时间,2024-01-02 14:00:00
|
|
|
|
|
const AppEnterProductionTime = 1704175200
|