package cn.superdesk.uniorder.common.security.openapi.interceptor.AvoidRepeatableCommit;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @Description: 避免重复提交
 * @Author: linjinyu
 * @CreateDate: 2021/6/2 下午6:02
 * @UpdateUser: linjinyu
 * @UpdateDate: 2021/6/2 下午6:02
 * @UpdateRemark: 修改内容
 * @Version: 1.0
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface AvoidRepeatableCommit {

	/**
	 * 指定时间内不可重复提交,单位毫秒,默认1秒
	 */
	long timeout() default 1000;
}
