This commit is contained in:
Redkale
2016-09-02 10:16:14 +08:00
parent a98a35b4af
commit aa6126ddec
4 changed files with 8 additions and 0 deletions

View File

@@ -23,4 +23,6 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME;
public @interface RestCookie {
String value(); //cookie名
String comment() default ""; //备注描述
}

View File

@@ -23,4 +23,6 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME;
public @interface RestHeader {
String value(); //参数名
String comment() default ""; //备注描述
}

View File

@@ -35,6 +35,8 @@ public @interface RestMapping {
*/
String name() default "";
String comment() default ""; //备注描述
boolean auth() default false; //是否鉴权,默认不鉴权
int actionid() default 0; //操作ID值鉴权时用到, 对应@WebAction.actionid

View File

@@ -24,4 +24,6 @@ public @interface RestParam {
String value(); //参数名
String comment() default ""; //备注描述
}