package com.njzscloud.common.core.http.annotation;

import com.njzscloud.common.core.http.processor.DefaultJsonBodyParamProcessor;
import com.njzscloud.common.core.http.processor.JsonBodyParamProcessor;

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 JsonBodyParam {
    /**
     * 参数处理器
     *
     * @return ParamProcessor
     */
    Class<? extends JsonBodyParamProcessor> processor() default DefaultJsonBodyParamProcessor.class;
}
