You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
582 B
23 lines
582 B
10 months ago
|
package annotation;
|
||
11 months ago
|
|
||
|
import java.lang.annotation.ElementType;
|
||
|
import java.lang.annotation.Retention;
|
||
|
import java.lang.annotation.RetentionPolicy;
|
||
|
import java.lang.annotation.Target;
|
||
|
|
||
10 months ago
|
import enums.RequestFrequencyTypeEnum;
|
||
10 months ago
|
|
||
11 months ago
|
@Target(ElementType.METHOD)
|
||
|
@Retention(RetentionPolicy.RUNTIME)
|
||
|
public @interface GlobalInterceptor {
|
||
10 months ago
|
boolean checkAppUserLogin() default false;
|
||
10 months ago
|
|
||
10 months ago
|
boolean checkAdminLogin() default false;
|
||
10 months ago
|
|
||
|
boolean checkParam() default true;
|
||
|
|
||
|
int requestFrequencyThreshold() default 0;
|
||
|
|
||
|
RequestFrequencyTypeEnum frequencyType() default RequestFrequencyTypeEnum.NO_LIMIT;
|
||
11 months ago
|
}
|