package com.nova.sankuai.domain.enums.capitalInfo;
|
|
import io.swagger.annotations.ApiModel;
|
|
@ApiModel(value = "联登模式")
|
public enum CapitalCollionModeParamEnum {
|
NOT_ENABLED(0, "关闭"),
|
ENABLE(1, "开启"),
|
;
|
|
private Integer code;
|
private String value;
|
|
CapitalCollionModeParamEnum(int code, String value) {
|
this.code = code;
|
this.value = value;
|
}
|
|
public static String value(Integer code) {
|
if (code != null) {
|
for (CapitalCollionModeParamEnum m : CapitalCollionModeParamEnum.values()) {
|
if (m.getCode() == code.intValue()) {
|
return m.getValue();
|
}
|
}
|
}
|
return null;
|
}
|
|
public Integer getCode() {
|
return code;
|
}
|
|
public void setCode(Integer code) {
|
this.code = code;
|
}
|
|
public String getValue() {
|
return value;
|
}
|
|
public void setValue(String value) {
|
this.value = value;
|
}
|
}
|