提交 | 用户 | 时间
|
e7c126
|
1 |
package com.xxl.job.admin.controller.annotation; |
H |
2 |
|
|
3 |
|
|
4 |
import java.lang.annotation.ElementType; |
|
5 |
import java.lang.annotation.Retention; |
|
6 |
import java.lang.annotation.RetentionPolicy; |
|
7 |
import java.lang.annotation.Target; |
|
8 |
|
|
9 |
/** |
|
10 |
* 权限限制 |
|
11 |
* @author xuxueli 2015-12-12 18:29:02 |
|
12 |
*/ |
|
13 |
@Target(ElementType.METHOD) |
|
14 |
@Retention(RetentionPolicy.RUNTIME) |
|
15 |
public @interface PermissionLimit { |
|
16 |
|
|
17 |
/** |
|
18 |
* 登录拦截 (默认拦截) |
|
19 |
*/ |
|
20 |
boolean limit() default true; |
|
21 |
|
|
22 |
/** |
|
23 |
* 要求管理员权限 |
|
24 |
* |
|
25 |
* @return |
|
26 |
*/ |
|
27 |
boolean adminuser() default false; |
|
28 |
|
|
29 |
} |