Explorar el Código

feat(config): 添加风控配置时间窗口字段

- 在RiskControlProperties中添加timeWindowHours字段
- 设置默认时间窗口为24小时- 为发布记录和同类商品配置分别添加时间窗口参数
wxd hace 1 mes
padre
commit
95abd6ade3

+ 9 - 0
alien-config/src/main/java/shop/alien/config/properties/RiskControlProperties.java

@@ -58,6 +58,10 @@ public class RiskControlProperties {
          * 24小时内发布成功记录次数阈值
          */
         private int publishCount24h = 3;
+        /**
+         * 时间窗口(小时)
+         */
+        private int timeWindowHours = 24;
     }
 
     @Data
@@ -66,5 +70,10 @@ public class RiskControlProperties {
          * 24小时内发布同类商品数量阈值
          */
         private int sameCategoryCount24h = 10;
+        
+        /**
+         * 时间窗口(小时)
+         */
+        private int timeWindowHours = 24;
     }
 }