package com.cpop.core.annontation;

import com.fasterxml.jackson.annotation.JacksonAnnotationsInside;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.cpop.core.strategy.json.ArrayToStringDeserializer;
import com.cpop.core.strategy.json.StringToArraySerializer;

import java.lang.annotation.*;

/**
 * 数组和逗号拼接转换注解
 * @author DB
 */
@Documented
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
@JacksonAnnotationsInside
@JsonSerialize(using = StringToArraySerializer.class)
@JsonDeserialize(using = ArrayToStringDeserializer.class)
public @interface StringArrayConvert {
}
