From 9ba7cd8d870b1e82d6ca5b10281aa334916cf356 Mon Sep 17 00:00:00 2001 From: sin Date: Mon, 20 May 2019 13:36:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E6=97=B6=E5=85=88=E5=88=A0=E6=8E=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cn/iocoder/mall/admin/sdk/dict/Bean.java | 16 --------- .../iocoder/mall/admin/sdk/dict/DictVal.java | 34 ------------------- .../mall/admin/sdk/dict/DictValProcessor.java | 23 ------------- 3 files changed, 73 deletions(-) delete mode 100644 system/system-sdk/src/main/java/cn/iocoder/mall/admin/sdk/dict/Bean.java delete mode 100644 system/system-sdk/src/main/java/cn/iocoder/mall/admin/sdk/dict/DictVal.java delete mode 100644 system/system-sdk/src/main/java/cn/iocoder/mall/admin/sdk/dict/DictValProcessor.java diff --git a/system/system-sdk/src/main/java/cn/iocoder/mall/admin/sdk/dict/Bean.java b/system/system-sdk/src/main/java/cn/iocoder/mall/admin/sdk/dict/Bean.java deleted file mode 100644 index 5bbbd7cef..000000000 --- a/system/system-sdk/src/main/java/cn/iocoder/mall/admin/sdk/dict/Bean.java +++ /dev/null @@ -1,16 +0,0 @@ -package cn.iocoder.mall.admin.sdk.dict; - -import lombok.Data; -import lombok.experimental.Accessors; - -/** - * @author Sin - * @time 2019-04-16 20:43 - */ -@Data -@Accessors(chain = true) -public class Bean { - - @DictVal(dicKey = "gender", dicValue = "1") - private String gender; -} diff --git a/system/system-sdk/src/main/java/cn/iocoder/mall/admin/sdk/dict/DictVal.java b/system/system-sdk/src/main/java/cn/iocoder/mall/admin/sdk/dict/DictVal.java deleted file mode 100644 index 94d63c098..000000000 --- a/system/system-sdk/src/main/java/cn/iocoder/mall/admin/sdk/dict/DictVal.java +++ /dev/null @@ -1,34 +0,0 @@ -package cn.iocoder.mall.admin.sdk.dict; - -import java.lang.annotation.*; - -/** - * 字典转换 - * - * @author Sin - * @time 2019-04-16 20:22 - */ -@Target({ElementType.FIELD}) -@Retention(RetentionPolicy.RUNTIME) -@Documented -public @interface DictVal { - - /** - * 字典的 key - * - * @return - */ - String dicKey(); - /** - * 字典 value - * - * @return - */ - String dicValue(); - /** - * - 暂时只有 dictDisplayName 字典值转换为 dictDisplayName 给用户界面 - * - * @return - */ - String mode() default "dictDisplayName"; -} diff --git a/system/system-sdk/src/main/java/cn/iocoder/mall/admin/sdk/dict/DictValProcessor.java b/system/system-sdk/src/main/java/cn/iocoder/mall/admin/sdk/dict/DictValProcessor.java deleted file mode 100644 index ffb1db4ac..000000000 --- a/system/system-sdk/src/main/java/cn/iocoder/mall/admin/sdk/dict/DictValProcessor.java +++ /dev/null @@ -1,23 +0,0 @@ -package cn.iocoder.mall.admin.sdk.dict; - -import org.springframework.util.ReflectionUtils; - -/** - * {@link DictVal} 处理器 - * - * @author Sin - * @time 2019-04-16 20:43 - */ -public class DictValProcessor { - - public static void main(String[] args) { - - - } - - public void processor(Class clazz) { -// ReflectionUtils.ann -// clazz.getFi -// ReflectionUtils - } -}