|
@@ -1,6 +1,7 @@
|
|
|
package org.dromara.common.idempotent.annotation;
|
|
|
|
|
|
import java.lang.annotation.*;
|
|
|
+import java.util.concurrent.TimeUnit;
|
|
|
|
|
|
/**
|
|
|
* 自定义注解防止表单重复提交
|
|
@@ -18,6 +19,8 @@ public @interface RepeatSubmit {
|
|
|
*/
|
|
|
int interval() default 5000;
|
|
|
|
|
|
+ TimeUnit timeUnit() default TimeUnit.MILLISECONDS;
|
|
|
+
|
|
|
/**
|
|
|
* 提示消息 支持国际化 格式为 {code}
|
|
|
*/
|