初始化
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package tech.easyflow.common.annotation;
|
||||
|
||||
import java.lang.annotation.*;
|
||||
|
||||
@Inherited
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target({ElementType.TYPE})
|
||||
public @interface DictDef {
|
||||
String name();
|
||||
String code();
|
||||
String keyField();
|
||||
String labelField();
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package tech.easyflow.common.annotation;
|
||||
|
||||
import java.lang.annotation.*;
|
||||
|
||||
@Target({ElementType.TYPE, ElementType.METHOD})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Documented
|
||||
public @interface NeedApiKeyAccess {
|
||||
String[] value() default {};
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package tech.easyflow.common.annotation;
|
||||
|
||||
import java.lang.annotation.*;
|
||||
|
||||
@Inherited
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target({ElementType.TYPE})
|
||||
public @interface UsePermission {
|
||||
// 使用哪个模块的权限
|
||||
String moduleName();
|
||||
}
|
||||
Reference in New Issue
Block a user