标准枚举信息

public enum result {

    OPEN_NO("0","未开通"),

    OPEN_ON("1","已开通");

    private String code;
    private String msg;

    result(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}

 

posted @ 2020-11-13 14:49  土木转行的人才  阅读(64)  评论(0编辑  收藏  举报