旗开得胜

This commit is contained in:
2025-04-24 11:49:32 +08:00
parent ac5dd03c79
commit 2577c614d5
10 changed files with 362 additions and 10 deletions

View File

@ -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 " ";
}