service/api/consts/consts.go

106 lines
2.9 KiB
Go
Raw Normal View History

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-04-11 19:34:51 +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"
2024-04-27 08:20:19 +08:00
ReferentialZoneMomentKey = "referential_zone_moment"
2024-04-30 09:51:23 +08:00
IsMomentImageEncryptEnabledKey = "is_moment_image_encrypt_enabled"
2024-04-27 17:23:04 +08:00
RestrictedVisitorMomentKey = "restricted_visitor_moment"
2024-05-01 04:32:09 +08:00
AppConfigReflectKey = "app_config_reflect"
2024-05-06 20:17:52 +08:00
ZoneVIPConfigKey = "zone_vip_config"
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-03-08 00:42:42 +08:00
//const PackageRootPath = "C:/Users/PC/Desktop/service"
2023-12-21 22:17:40 +08:00
const PackageRootPath = "/app/wishpal-ironfan"
const MainConfigPath = PackageRootPath + "/etc/mix/mix-test.yaml"
2023-12-24 11:59:24 +08:00
const ProductionConfigPath = PackageRootPath + "/etc/mix/mix-prod.yaml"
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"
// 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-02 14:00:00
const AppEnterProductionTime = 1704175200