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