package com.njzscloud.common.http.annotation;

import com.njzscloud.common.http.processor.BodyParamProcessor;
import com.njzscloud.common.http.processor.DefaultBodyParamProcessor;

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 BodyParam {
    String contentType() default "";

    /**
     * 参数处理器
     *
     * @return ParamProcessor
     */
    Class<? extends BodyParamProcessor> processor() default DefaultBodyParamProcessor.class;
}
