package com.nova.sankuai.domain.enums.customerinfo;
|
|
import io.swagger.annotations.ApiModel;
|
|
/**
|
* 房产属性
|
*
|
* @author weikangdi
|
* @create 2021/12/8
|
*/
|
@ApiModel(value = "客户资产信息-房产属性枚举")
|
public enum HouseAttributesEnum {
|
|
HouseAttributes_1(0, "无"),
|
HouseAttributes_2(1, "本地房"),
|
HouseAttributes_3(2, "外地房");
|
|
private Integer code;
|
private String value;
|
|
HouseAttributesEnum(int code, String value) {
|
this.code = code;
|
this.value = value;
|
}
|
|
public static String value(Integer code) {
|
if (code != null) {
|
for (HouseAttributesEnum m : HouseAttributesEnum.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;
|
}
|
}
|