package com.tofly.feesapi.common.constant;

import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.SerializerProvider;

import java.io.IOException;


public class JmyjEnumJsonSerializer extends JsonSerializer<JmyjEnum> {
    @Override
    public void serialize(JmyjEnum value, JsonGenerator gen, SerializerProvider provider) throws IOException {
        gen.writeString(value.getDesc()); // 直接输出desc
    }
}
