package com.njzscloud.common.http.annotation;

import com.njzscloud.common.http.processor.DefaultXmlBodyParamProcessor;
import com.njzscloud.common.http.processor.XmlBodyParamProcessor;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.*;

@Target({TYPE, FIELD, PARAMETER, METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface XmlBodyParam {
    /**
     * 参数处理器
     *
     * @return ParamProcessor
     */
    Class<? extends XmlBodyParamProcessor> processor() default DefaultXmlBodyParamProcessor.class;
}
