Sunshine
2024-11-05 8f7985d7764a0aad24bd593ac5ea47b7fc290961
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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;
    }
}