package com.nova.sankuai.domain.enums.customerinfo;
|
|
import io.swagger.annotations.ApiModel;
|
|
/**
|
* @author weikangdi
|
* 客户资产信息-亲属关系
|
*/
|
@ApiModel(value = "客户资产信息-亲属关系枚举")
|
public enum RelationshipEnum {
|
|
Relationship_1("0", "父母"),
|
Relationship_2("1", "子女"),
|
Relationship_3("01", "配偶"),
|
Relationship_4("02", "父母"),
|
Relationship_5("03", "子女"),
|
Relationship_6("04", "兄弟姐妹"),
|
Relationship_7("05", "其他"),
|
Relationship_8("06", "朋友"),
|
Relationship_9("07", "同事"),
|
Relationship_10("08", "亲属"),
|
;
|
|
|
private String code;
|
private String value;
|
|
RelationshipEnum(String code, String value) {
|
this.code = code;
|
this.value = value;
|
}
|
|
public static String value(String code) {
|
if (code != null) {
|
for (RelationshipEnum m : RelationshipEnum.values()) {
|
if (m.getCode().equals(code)) {
|
return m.getValue();
|
}
|
}
|
}
|
return null;
|
}
|
|
|
public String getCode() {
|
return code;
|
}
|
|
public void setCode(String code) {
|
this.code = code;
|
}
|
|
public String getValue() {
|
return value;
|
}
|
|
public void setValue(String value) {
|
this.value = value;
|
}
|
|
}
|