package com.nova.sankuai.domain.enums.capitalInfo;
|
|
import io.swagger.annotations.ApiModel;
|
|
/**
|
* @Author Lilinhong
|
* @Date 2022/8/2 13:39
|
*/
|
@ApiModel(value = "是否是必须OCR资料枚举")
|
public enum CapitalInfoIsLenderEnum {
|
NOT_OCR_REQUIRED(0, "不是必须OCR资料"),
|
OCR_REQUIRED(1, "是必须OCR资料"),
|
;
|
|
private Integer code;
|
private String value;
|
|
CapitalInfoIsLenderEnum(int code, String value) {
|
this.code = code;
|
this.value = value;
|
}
|
|
public static String value(Integer code) {
|
if (code != null) {
|
for (CapitalResultStatusEnum m : CapitalResultStatusEnum.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;
|
}
|
}
|