package org.theonefx.wcframework.mvc.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target(ElementType.PARAMETER)
@Retention(RetentionPolicy.RUNTIME)
public @interface Param {
/**
* 参数名称
*/
public String value() default VALUE_ROOT;
/**
* 参数转换类型
*
* @see org.theonefx.wcframework.mvc.annotation.ParamType
*/
public ParamType type() default ParamType.AUTO;
/**
* 是否开启跨站脚本过滤
*/
public boolean XSS() default false;
/**
* Param数据来源
*
* @see org.theonefx.wcframework.mvc.annotation.ParamSource
*/
public ParamSource[] source() default { ParamSource.PATH, ParamSource.REQUEST };
public static final String VALUE_ROOT = "";
}