new
This commit is contained in:
@@ -139,6 +139,10 @@ type DailyRateLimitConfig struct {
|
||||
BlockedCountries []string `mapstructure:"blocked_countries"` // 被阻止的国家/地区
|
||||
EnableProxyCheck bool `mapstructure:"enable_proxy_check"` // 是否检查代理
|
||||
MaxConcurrent int `mapstructure:"max_concurrent"` // 最大并发请求数
|
||||
// 路径排除配置
|
||||
ExcludePaths []string `mapstructure:"exclude_paths"` // 排除频率限制的路径
|
||||
// 域名排除配置
|
||||
ExcludeDomains []string `mapstructure:"exclude_domains"` // 排除频率限制的域名
|
||||
}
|
||||
|
||||
// MonitoringConfig 监控配置
|
||||
@@ -314,6 +318,14 @@ type WalletConfig struct {
|
||||
MinAmount string `mapstructure:"min_amount"` // 最低充值金额
|
||||
MaxAmount string `mapstructure:"max_amount"` // 最高充值金额
|
||||
AliPayRechargeBonus []AliPayRechargeBonusRule `mapstructure:"alipay_recharge_bonus"`
|
||||
BalanceAlert BalanceAlertConfig `mapstructure:"balance_alert"`
|
||||
}
|
||||
|
||||
// BalanceAlertConfig 余额预警配置
|
||||
type BalanceAlertConfig struct {
|
||||
DefaultEnabled bool `mapstructure:"default_enabled"` // 默认启用余额预警
|
||||
DefaultThreshold float64 `mapstructure:"default_threshold"` // 默认预警阈值
|
||||
AlertCooldownHours int `mapstructure:"alert_cooldown_hours"` // 预警冷却时间(小时)
|
||||
}
|
||||
|
||||
// AliPayRechargeBonusRule 支付宝充值赠送规则
|
||||
|
||||
Reference in New Issue
Block a user