AuditOperationEnum.java 755 Bytes
Newer Older
liqin's avatar
liqin committed
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
package cn.wisenergy.chnmuseum.party.common.enums;

/**
 * 审核状态
 */
public enum AuditOperationEnum {

    ADD(1, "新增"),
    EDIT(2, "修改"),
    REMOVE(2, "下架"),
    DELETE(3, "删除");

    // 错误编码
    private Integer code;
    // 信息
    private String operation;

    // 相应编码有参构造函数
    AuditOperationEnum(Integer code, String operation) {
        this.code = code;
        this.operation = operation;
    }

    public Integer getCode() {
        return code;
    }

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

    public String getOperation() {
        return operation;
    }

    public void setOperation(String operation) {
        this.operation = operation;
    }

}