package enumeration.general; import com.baomidou.mybatisplus.annotation.EnumValue; import com.fasterxml.jackson.annotation.JsonValue; import lombok.Getter; /** * @author:xp * @date:2024/4/26 14:44 */ @Getter public enum CalculateReportStatusEnum { NOT_PUBLISH("not_publish", "未发布"), PUBLISHED("published", "已发布"); ; @EnumValue @JsonValue private final String value; private final String desc; CalculateReportStatusEnum(String value, String desc) { this.value = value; this.desc = desc; } }