DataScope.java 406 B

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