From 868942e202aeb967b8ce47b38cc2433a636a128d Mon Sep 17 00:00:00 2001 From: phanes <5411232+phanes@user.noreply.gitee.com> Date: 星期日, 16 一月 2022 17:46:24 +0800 Subject: [PATCH] update 格式化代码结构 统一编码格式 --- ruoyi-demo/src/main/java/com/ruoyi/demo/controller/TestSensitiveController.java | 24 +++++++++++++++++++----- 1 files changed, 19 insertions(+), 5 deletions(-) diff --git a/ruoyi-demo/src/main/java/com/ruoyi/demo/controller/TestSensitiveController.java b/ruoyi-demo/src/main/java/com/ruoyi/demo/controller/TestSensitiveController.java index 2458747..72b16e6 100644 --- a/ruoyi-demo/src/main/java/com/ruoyi/demo/controller/TestSensitiveController.java +++ b/ruoyi-demo/src/main/java/com/ruoyi/demo/controller/TestSensitiveController.java @@ -14,13 +14,13 @@ /** * 娴嬭瘯鏁版嵁鑴辨晱鎺у埗鍣� - * + * <p> * 榛樿绠$悊鍛樹笉杩囨护 * 闇�鑷鏍规嵁涓氬姟閲嶅啓瀹炵幇 * - * @see com.ruoyi.common.core.service.SensitiveService * @author Lion Li * @version 3.6.0 + * @see com.ruoyi.common.core.service.SensitiveService */ @Api(value = "娴嬭瘯鏁版嵁鑴辨晱鎺у埗鍣�", tags = {"娴嬭瘯鏁版嵁鑴辨晱绠$悊"}) @RestController @@ -34,9 +34,11 @@ @GetMapping("/test") public AjaxResult<TestSensitive> test() { TestSensitive testSensitive = new TestSensitive() - .setIdCard("3333199910101212") - .setPhone("18888888888") - .setAddress("鍖椾含甯傛湞闃冲尯鏌愭煇鍥涘悎闄�1203瀹�"); + .setIdCard("210397198608215431") + .setPhone("17640125371") + .setAddress("鍖椾含甯傛湞闃冲尯鏌愭煇鍥涘悎闄�1203瀹�") + .setEmail("17640125371@163.com") + .setBankCard("6226456952351452853"); return AjaxResult.success(testSensitive); } @@ -62,6 +64,18 @@ @Sensitive(strategy = SensitiveStrategy.ADDRESS) private String address; + /** + * 閭 + */ + @Sensitive(strategy = SensitiveStrategy.EMAIL) + private String email; + + /** + * 閾惰鍗� + */ + @Sensitive(strategy = SensitiveStrategy.BANK_CARD) + private String bankCard; + } } -- Gitblit v1.9.3