修改库存
This commit is contained in:
@@ -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 7200;
|
||||
|
||||
/**
|
||||
* 请求完成后 是否一直等待
|
||||
* true则等待
|
||||
* @return
|
||||
*/
|
||||
boolean needAllWait() default true;
|
||||
}
|
||||
Reference in New Issue
Block a user