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 16:48
|
*/
|
@ApiModel(value = "闪态主动查询返回枚举")
|
public enum ShanTaiSelectOrderEnum {
|
CLOSE("CLOSE", "关闭"),
|
INIT("INIT", "初始化"),
|
SUCCESS("SUCCESS", "支付成功"),
|
DELIVER("DELIVER", "发货"),
|
END("END", "确认收货,订单完成"),
|
;
|
private String code;
|
private String value;
|
|
ShanTaiSelectOrderEnum(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;
|
}
|
}
|