package com.ruoyi.doublePrevention.enums; import com.fasterxml.jackson.annotation.JsonValue; public enum CJReportEnum { SUCCESS("100", "上报全部成功"), SUCESS_AND_FAIL("102", "上报部分成功"), FAIL("103", "上报全部失败"), ; String code; @JsonValue String value; CJReportEnum(String code, String value) { this.code = code; this.value = value; } public String getCode() { return code; } public String getValue() { return value; } }