From 3c4fee1db116c11d4f04727cfe076d7c94daeaf2 Mon Sep 17 00:00:00 2001
From: yanzhaofeige <yanzhaofeige@qq.com>
Date: Mon, 30 Sep 2024 12:10:57 +0800
Subject: [PATCH] init

---
 cpzidc-common/src/main/java/com/odcc/cpzidc/common/filter/PropertyPreExcludeFilter.java |   24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/cpzidc-common/src/main/java/com/odcc/cpzidc/common/filter/PropertyPreExcludeFilter.java b/cpzidc-common/src/main/java/com/odcc/cpzidc/common/filter/PropertyPreExcludeFilter.java
new file mode 100644
index 0000000..5113469
--- /dev/null
+++ b/cpzidc-common/src/main/java/com/odcc/cpzidc/common/filter/PropertyPreExcludeFilter.java
@@ -0,0 +1,24 @@
+package com.odcc.cpzidc.common.filter;
+
+import com.alibaba.fastjson2.filter.SimplePropertyPreFilter;
+
+/**
+ * 排除JSON敏感属性
+ * 
+ * @author ruoyi
+ */
+public class PropertyPreExcludeFilter extends SimplePropertyPreFilter
+{
+    public PropertyPreExcludeFilter()
+    {
+    }
+
+    public PropertyPreExcludeFilter addExcludes(String... filters)
+    {
+        for (int i = 0; i < filters.length; i++)
+        {
+            this.getExcludes().add(filters[i]);
+        }
+        return this;
+    }
+}

--
Gitblit v1.9.3