工作参数枚举

Signed-off-by: crish <570360737@qq.com>
yun-zuoyi
crish 6 years ago
parent 65cb39d7ba
commit 7ce78b170f

@ -881,15 +881,17 @@ public class MesEnumUtil {
@JsonFormat(shape = JsonFormat.Shape.OBJECT) @JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum STEP_PARAM_TYPE { public enum STEP_PARAM_TYPE {
QUALIFIED(10, "数字"), QUALIFIED(10,"number", "数字"),
DEFECTED(20, "字符串"), DEFECTED(20, "text","字符串"),
SCRAPED(30, "可选值"); SCRAPED(30,"select", "可选值");
private int value; private int value;
private String code;
private String description; private String description;
STEP_PARAM_TYPE(int value, String description) { STEP_PARAM_TYPE(int value,String code, String description) {
this.value = value; this.value = value;
this.code = code;
this.description = description; this.description = description;
} }
@ -897,6 +899,8 @@ public class MesEnumUtil {
return value; return value;
} }
public String getCode(){return code;}
public String getDescription() { public String getDescription() {
return description; return description;
} }

Loading…
Cancel
Save