DataScope.java 600 B

123456789101112131415161718192021222324252627
  1. package com.ruoyi.common.annotation;
  2. import java.lang.annotation.Documented;
  3. import java.lang.annotation.ElementType;
  4. import java.lang.annotation.Retention;
  5. import java.lang.annotation.RetentionPolicy;
  6. import java.lang.annotation.Target;
  7. /**
  8. * 数据权限过滤注解
  9. *
  10. * @author ruoyi
  11. */
  12. @Target(ElementType.METHOD)
  13. @Retention(RetentionPolicy.RUNTIME)
  14. @Documented
  15. public @interface DataScope {
  16. /**
  17. * 部门表的别名
  18. */
  19. public String deptAlias() default "";
  20. /**
  21. * 用户表的别名
  22. */
  23. public String userAlias() default "";
  24. }