旗开得胜
This commit is contained in:
@ -0,0 +1,15 @@
|
||||
package com.greenorange.promotion.annotation;
|
||||
|
||||
import java.lang.annotation.*;
|
||||
|
||||
/**
|
||||
* JWT 权限注解
|
||||
**/
|
||||
|
||||
@Target({ElementType.TYPE, ElementType.METHOD})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Documented
|
||||
public @interface RequiresPermission {
|
||||
String roles() default " ";
|
||||
String permissions() default " ";
|
||||
}
|
Reference in New Issue
Block a user