package com.oying.utils.enums;
|
|
import lombok.AllArgsConstructor;
|
import lombok.Getter;
|
|
/**
|
* @author xin
|
* @description
|
* @date 2025/7/15 15:37
|
*/
|
@Getter
|
@AllArgsConstructor
|
public enum SendTypeEnum {
|
|
LY("LY", "立研"),
|
|
UNKNOWN("UNKNOWN", "暂未开放");
|
|
private final String key;
|
private final String value;
|
|
public static SendTypeEnum find(String val) {
|
for (SendTypeEnum value : SendTypeEnum.values()) {
|
if (val.equals(value.getKey())) {
|
return value;
|
}
|
}
|
return UNKNOWN;
|
}
|
|
public static String getValue(String val) {
|
for (SendTypeEnum value : SendTypeEnum.values()) {
|
if (val.equals(value.getKey())) {
|
return value.getValue();
|
}
|
}
|
return UNKNOWN.getValue();
|
}
|
}
|