com.mokung.pomegranate.jackson.expand.constant.EnumInterface Maven / Gradle / Ivy
package com.mokung.pomegranate.jackson.expand.constant;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
/**
* 枚举 接口
*
* @author mokung
*
*/
@JsonSerialize(using = EnumInterfaceJsonSerializer.class)
@JsonDeserialize(using = EnumInterfaceJsonDeserializer.class)
public interface EnumInterface {
/**
* 获取 json 字符串时展示的value类型 value
*
* @return value
*/
T getJsonValue();
}