浏览代码

nacos添加二手风控类型和检测指标

qrs 1 月之前
父节点
当前提交
472c7c6fd7
共有 1 个文件被更改,包括 41 次插入0 次删除
  1. 41 0
      alien-config/src/main/java/shop/alien/config/properties/RiskControlProperties.java

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

@@ -42,6 +42,16 @@ public class RiskControlProperties {
          * 每笔交易金额阈值(元)
          * 每笔交易金额阈值(元)
          */
          */
         private double amountThreshold = 200.0;
         private double amountThreshold = 200.0;
+
+        /**
+         * 风险类型
+         */
+        private String riskType = "洗钱嫌疑";
+
+        /**
+         * 检测指标
+         */
+        private String detectIndicator = "高频高价交易";
     }
     }
 
 
     @Data
     @Data
@@ -50,6 +60,16 @@ public class RiskControlProperties {
          * 24小时内同一设备/mac注册账号数量阈值
          * 24小时内同一设备/mac注册账号数量阈值
          */
          */
         private int regCount24h = 3;
         private int regCount24h = 3;
+
+        /**
+         * 风险类型
+         */
+        private String riskType = "账号异常";
+
+        /**
+         * 检测指标
+         */
+        private String detectIndicator = "同一设备24小时内注册超过3个账号";
     }
     }
 
 
     @Data
     @Data
@@ -58,10 +78,21 @@ public class RiskControlProperties {
          * 24小时内发布成功记录次数阈值
          * 24小时内发布成功记录次数阈值
          */
          */
         private int publishCount24h = 3;
         private int publishCount24h = 3;
+
         /**
         /**
          * 时间窗口(小时)
          * 时间窗口(小时)
          */
          */
         private int timeWindowHours = 24;
         private int timeWindowHours = 24;
+
+        /**
+         * 风险类型
+         */
+        private String riskType = "交易欺诈";
+
+        /**
+         * 检测指标
+         */
+        private String detectIndicator = "用户频繁修改商品";
     }
     }
 
 
     @Data
     @Data
@@ -75,5 +106,15 @@ public class RiskControlProperties {
          * 时间窗口(小时)
          * 时间窗口(小时)
          */
          */
         private int timeWindowHours = 24;
         private int timeWindowHours = 24;
+
+        /**
+         * 风险类型
+         */
+        private String riskType = "异常发布";
+
+        /**
+         * 检测指标
+         */
+        private String detectIndicator = "短时间大量发布同类商品";
     }
     }
 }
 }