package com.nova.sankuai.domain.api.shantai;
|
|
import com.nova.sankuai.domain.enums.AppParamTypeEnum;
|
import io.swagger.annotations.ApiModel;
|
|
/**
|
* @Author Lilinhong
|
* @Date 2022/9/15 13:48
|
*/
|
@ApiModel(value = "闪态验证类型枚举")
|
public enum ShanTaiSureTypeEnum {
|
SMS_VERIFY("SMS_VERIFY", "短信验证"),
|
PROTOCOL_VERIFY("PROTOCOL_VERIFY", "用户同意协议"),
|
;
|
private String code;
|
private String value;
|
|
ShanTaiSureTypeEnum(String code, String value) {
|
this.code = code;
|
this.value = value;
|
}
|
|
public static String value(String code) {
|
if (code != null) {
|
for (AppParamTypeEnum m : AppParamTypeEnum.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;
|
}
|
}
|