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
package annotation;
|
|
|
|
import java.lang.annotation.ElementType;
|
|
import java.lang.annotation.Retention;
|
|
import java.lang.annotation.RetentionPolicy;
|
|
import java.lang.annotation.Target;
|
|
|
|
import enums.RequestFrequencyTypeEnum;
|
|
|
|
@Target(ElementType.METHOD)
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
public @interface GlobalInterceptor {
|
|
boolean checkAppUserLogin() default false;
|
|
|
|
boolean checkAdminLogin() default false;
|
|
|
|
boolean checkParam() default true;
|
|
|
|
int requestFrequencyThreshold() default 0;
|
|
|
|
RequestFrequencyTypeEnum frequencyType() default RequestFrequencyTypeEnum.NO_LIMIT;
|
|
}
|