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

cn.cliveyuan.robin.base.common.ApiErrorCode Maven / Gradle / Ivy

There is a newer version: 1.3.1
Show newest version
package cn.cliveyuan.robin.base.common;

/**
 * @author Clive Yuan
 * @date 2020/12/24
 */
public enum ApiErrorCode {
    /**
     * 成功
     */
    SUCCESS(0, "success"),
    /**
     * 失败
     */
    FAIL(-1, "fail");

    private final int code;
    private final String msg;

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

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy