This commit is contained in:
@@ -23,4 +23,6 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME;
|
|||||||
public @interface RestCookie {
|
public @interface RestCookie {
|
||||||
|
|
||||||
String value(); //cookie名
|
String value(); //cookie名
|
||||||
|
|
||||||
|
String comment() default ""; //备注描述
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,4 +23,6 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME;
|
|||||||
public @interface RestHeader {
|
public @interface RestHeader {
|
||||||
|
|
||||||
String value(); //参数名
|
String value(); //参数名
|
||||||
|
|
||||||
|
String comment() default ""; //备注描述
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,6 +35,8 @@ public @interface RestMapping {
|
|||||||
*/
|
*/
|
||||||
String name() default "";
|
String name() default "";
|
||||||
|
|
||||||
|
String comment() default ""; //备注描述
|
||||||
|
|
||||||
boolean auth() default false; //是否鉴权,默认不鉴权
|
boolean auth() default false; //是否鉴权,默认不鉴权
|
||||||
|
|
||||||
int actionid() default 0; //操作ID值,鉴权时用到, 对应@WebAction.actionid
|
int actionid() default 0; //操作ID值,鉴权时用到, 对应@WebAction.actionid
|
||||||
|
|||||||
@@ -24,4 +24,6 @@ public @interface RestParam {
|
|||||||
|
|
||||||
String value(); //参数名
|
String value(); //参数名
|
||||||
|
|
||||||
|
String comment() default ""; //备注描述
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user