import
parent
2dd150bbe7
commit
311fbf6946
|
|
@ -1,5 +1,6 @@
|
||||||
package org.qinan.safetyeval.app.support;
|
package org.qinan.safetyeval.app.support;
|
||||||
|
|
||||||
|
import lombok.Getter;
|
||||||
import org.springframework.util.StringUtils;
|
import org.springframework.util.StringUtils;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -7,11 +8,14 @@ import org.springframework.util.StringUtils;
|
||||||
*
|
*
|
||||||
* @author safety-eval
|
* @author safety-eval
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@Getter
|
||||||
public enum ImportGenderEnum {
|
public enum ImportGenderEnum {
|
||||||
|
|
||||||
MALE(1, "男", new String[]{"男", "男性"}),
|
MALE(1, "男", new String[]{"男", "男性"}),
|
||||||
FEMALE(2, "女", new String[]{"女", "女性"});
|
FEMALE(2, "女", new String[]{"女", "女性"});
|
||||||
|
|
||||||
|
|
||||||
private final Integer code;
|
private final Integer code;
|
||||||
private final String name;
|
private final String name;
|
||||||
private final String[] aliases;
|
private final String[] aliases;
|
||||||
|
|
@ -22,14 +26,6 @@ public enum ImportGenderEnum {
|
||||||
this.aliases = aliases;
|
this.aliases = aliases;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Integer getCode() {
|
|
||||||
return code;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getName() {
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 按文本匹配性别枚举,无法识别返回 null。
|
* 按文本匹配性别枚举,无法识别返回 null。
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue