package com.billion.common.annotation; import java.lang.annotation.Documented; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; import com.billion.common.constant.CacheConstants; import com.billion.common.enums.LimitType; /** * 陿µæ³¨è§£ * * @author ruoyi */ @Target(ElementType.METHOD) @Retention(RetentionPolicy.RUNTIME) @Documented public @interface RateLimiter { /** * 陿µkey */ public String key() default CacheConstants.RATE_LIMIT_KEY; /** * 陿µæ—¶é—´,å•ä½ç§’ */ public int time() default 60; /** * 陿µæ¬¡æ•° */ public int count() default 100; /** * 陿µç±»åž‹ */ public LimitType limitType() default LimitType.DEFAULT; }