LogDataId.java 550 B

123456789101112131415161718192021
  1. package com.dk.common.infrastructure.annotaiton;
  2. import java.lang.annotation.ElementType;
  3. import java.lang.annotation.Retention;
  4. import java.lang.annotation.RetentionPolicy;
  5. import java.lang.annotation.Target;
  6. /**
  7. * @author : 洪旭东
  8. * @desc : LogDataId
  9. * @date : 2023-9-4 13:08
  10. */
  11. @Target({ElementType.FIELD, ElementType.ANNOTATION_TYPE})
  12. @Retention(RetentionPolicy.RUNTIME)
  13. public @interface LogDataId {
  14. /*
  15. 主键字段
  16. mapper中查询方法参数的顺序按照实体中LogDataId顺序
  17. */
  18. String value() default "";
  19. }