package com.gkhy.safePlatform.doublePrevent.rpc.apimodel.enums; import com.fasterxml.jackson.annotation.JsonValue; public enum DateEnum { MONTH((byte) 1, "月"), YEAR((byte) 2, "年"), ; byte code; @JsonValue String value; DateEnum(byte code, String value) { this.code = code; this.value = value; } public Byte getCode() { return code; } public String getValue() { return value; } }