添加接口防抖

This commit is contained in:
韩鹏辉
2024-06-14 14:24:14 +08:00
parent 6ab2a32c9f
commit ada1dafe86
5 changed files with 305 additions and 285 deletions

View File

@@ -0,0 +1,22 @@
package com.chaozhanggui.system.cashierservice.annotation;
import java.lang.annotation.*;
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
public @interface LimitSubmit {
String key() ;
/**
* 默认 10s
*/
int limit() default 30;
/**
* 请求完成后 是否一直等待
* true则等待
* @return
*/
boolean needAllWait() default true;
}