add
yj
2024-12-05 a160d838f9c0a79dfc2f18e7cd46bdd4faa59c6d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package com.dobbinsoft.fw.core.annotation;
 
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
 
/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: rize
 * Date: 2018-03-25
 * Time: 下午1:12
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface HttpMethod {
    String description();
    ResultType type() default ResultType.COMMONS;
    RateLimitType rateLimit() default RateLimitType.NONE;
    int rateWindow() default 60;
    int rate() default 1;
    String retName() default "";
    int maxAge() default -1;
    String permission() default "";
    String permissionParentName() default "";
    String permissionName() default "";
    boolean openPlatform() default false;
    /**
     * 从网关上构建一个实例
     * @return
     */
    Class loadBean() default void.class;
}