mirror of https://github.com/qiurunze123/miaosha
16 lines
365 B
Java
16 lines
365 B
Java
package com.geekq.miaosha.access;
|
|
|
|
import java.lang.annotation.Retention;
|
|
import java.lang.annotation.Target;
|
|
|
|
import static java.lang.annotation.ElementType.METHOD;
|
|
import static java.lang.annotation.RetentionPolicy.RUNTIME;
|
|
|
|
@Retention(RUNTIME)
|
|
@Target(METHOD)
|
|
public @interface AccessLimit {
|
|
int seconds();
|
|
int maxCount();
|
|
boolean needLogin() default true;
|
|
}
|