当前位置 : 主页 > 编程语言 > java >

ProductStatusEnum

来源:互联网 收集:自由互联 发布时间:2021-06-28
ProductStatusEnum /** * ProductStatusEnum.UP.getCode() */public enum ProductStatusEnum { UP(0, "在架"), DOWN(1, "下架"); private Integer code; private String msg; ProductStatusEnum(Integer code, String msg) { this.code = code; this.msg
ProductStatusEnum
/**
 * ProductStatusEnum.UP.getCode()
 */
public enum  ProductStatusEnum {
    UP(0, "在架"),
    DOWN(1, "下架");

    private Integer code;
    private String msg;

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

    public Integer getCode() {
        return code;
    }

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

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
网友评论