package com.hzs.common.core.annotation;

import java.lang.annotation.*;

/**
 * 自定义注解防止表单重复提交
 * @author: sui q
 * @time: 2022/8/27 14:39
 * @description:
 * @classname: RepeatSubmit
 * @package_name: com.hzs.common.core.annotation
 */
@Inherited
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface RepeatSubmit {

    /**
     * 延时时间 在延时多久后可以再次提交
     *
     * @return Time unit is one second
     */
    int delaySeconds() default 5;

}
