1234567891011121314151617181920212223242526272829 |
- package com.xxl.job.admin.controller.annotation;
- import java.lang.annotation.ElementType;
- import java.lang.annotation.Retention;
- import java.lang.annotation.RetentionPolicy;
- import java.lang.annotation.Target;
- /**
- * 权限限制
- * @author xuxueli 2015-12-12 18:29:02
- */
- @Target(ElementType.METHOD)
- @Retention(RetentionPolicy.RUNTIME)
- public @interface PermissionLimit {
-
- /**
- * 登录拦截 (默认拦截)
- */
- boolean limit() default true;
- /**
- * 要求管理员权限
- *
- * @return
- */
- boolean adminuser() default false;
- }
|