62af3c4494a1e5500a766bddbb0760af214a3bef.svn-base 542 B

1234567891011121314151617181920212223242526272829
  1. package com.xxl.job.admin.controller.annotation;
  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. * 权限限制
  8. * @author xuxueli 2015-12-12 18:29:02
  9. */
  10. @Target(ElementType.METHOD)
  11. @Retention(RetentionPolicy.RUNTIME)
  12. public @interface PermissionLimit {
  13. /**
  14. * 登录拦截 (默认拦截)
  15. */
  16. boolean limit() default true;
  17. /**
  18. * 要求管理员权限
  19. *
  20. * @return
  21. */
  22. boolean adminuser() default false;
  23. }