园林绿化
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
954 B

  1. package com.chenhai.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. */
  20. public String userAlias() default "";
  21. /**
  22. * 部门表的别名
  23. */
  24. public String deptAlias() default "";
  25. /**
  26. * 用户字段名
  27. */
  28. public String userField() default "user_id";
  29. /**
  30. * 部门字段名
  31. */
  32. public String deptField() default "dept_id";
  33. /**
  34. * 权限字符用于多个角色匹配符合要求的权限默认根据权限注解@ss获取多个权限用逗号分隔开来
  35. */
  36. public String permission() default "";
  37. }