package com.nova.sankuai.domain.enums.vipservice;
|
|
import io.swagger.annotations.ApiModel;
|
|
/**
|
* @author weikangdi
|
* @create 2022/1/26
|
*/
|
@ApiModel(value = "会员购买情况枚举")
|
public enum VipCardOrderLogEnum {
|
|
PURCHASE_NOT_ORDERED(0, "点击未下单"),
|
PURCHASE_HAS_BEEN_ORDERED(1, "点击已下单"),
|
PURCHASE_SUCCESS(2, "点击已购买");
|
|
private Integer code;
|
private String value;
|
|
VipCardOrderLogEnum(int code, String value) {
|
this.code = code;
|
this.value = value;
|
}
|
|
public static String value(Integer code) {
|
if (code != null) {
|
for (VipCardOrderLogEnum m : VipCardOrderLogEnum.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;
|
}
|
}
|