package com.kexue.skills.annotation;

/**
 * @author 维哥
 * @Description 防止重复提交注解
 * @create 2025-02-25 15:35
 */
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface PreventDuplicateSubmission {
    long timeout() default 1000; // 默认超时时间为1秒
}