All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.rookie.common.constant.CodeResult Maven / Gradle / Ivy

package com.rookie.common.constant;

/**
 * @author hanhan
 */

public enum CodeResult {

    /**
     * 代码及结果定义
     */
    NULL_FAIL(10000, "参数不能为空"),
    FAIL(0, "返回错误"),
    SUCCESS(1, "返回成功");

    private int code;
    private String text;

    CodeResult(int code, String text) {
        this.code = code;
        this.text = text;
    }

    public int getCode() {
        return code;
    }

    public String getText() {
        return text;
    }

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

    public void setText(String text) {
        this.text = text;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy