Browse Source

feat 缓存模块增加

1 month ago
parent
commit
1fe4140dda

+ 9 - 0
edu-travel-common/edu-travel-common-datasource/src/main/java/edu/travel/annotation/LinkConst.java

@@ -7,6 +7,15 @@ import java.lang.annotation.*;
 @Target(ElementType.FIELD)
 @Inherited
 public @interface LinkConst {
+    /**
+     * 字典类
+     * @return
+     */
     Class clazz() ;
+
+    /**
+     * 需要字典翻译字段
+     * @return
+     */
     String fieldName();
 }

+ 14 - 0
edu-travel-common/edu-travel-common-datasource/src/main/java/edu/travel/annotation/LinkMany.java

@@ -9,7 +9,21 @@ import java.lang.annotation.*;
 @Target(ElementType.FIELD)
 @Inherited
 public @interface LinkMany {
+    /**
+     * 主表字段
+     * @return
+     */
     String linkField() ;
+
+    /**
+     * 使用哪个mapper来关联查询
+     * @return
+     */
     Class linkMapper();
+
+    /**
+     * 从表关联字段
+     * @return
+     */
     String linkPrimaryField();
 }

+ 14 - 0
edu-travel-common/edu-travel-common-datasource/src/main/java/edu/travel/annotation/LinkOne.java

@@ -9,7 +9,21 @@ import java.lang.annotation.*;
 @Target(ElementType.FIELD)
 @Inherited
 public @interface LinkOne {
+    /**
+     *  主表关联字段
+     * @return
+     */
     String linkField();
+
+    /**
+     * 使用哪个mapper来关联查询
+     * @return
+     */
     Class linkMapper();
+
+    /**
+     * 从表关联字段
+     * @return
+     */
     String linkPrimaryField();
 }