cn.k7g.alloy.core.objectmapper.ExpandFlagEnumSerializer Maven / Gradle / Ivy
package cn.k7g.alloy.core.objectmapper;
import cn.k7g.alloy.annotation.ExpandFlag;
import cn.k7g.alloy.core.ext.FlagCode;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.SerializerProvider;
import lombok.extern.slf4j.Slf4j;
import java.io.IOException;
import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Optional;
import java.util.Set;
/**
* 序列化枚举类型
* @date 2022/1/19 上午10:59
* @author victor-wu
*/
@Slf4j
public class ExpandFlagEnumSerializer extends JsonSerializer