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

cn.fyupeng.enums.ResponseCode Maven / Gradle / Ivy

There is a newer version: 2.2.5
Show newest version
package cn.fyupeng.enums;


/**
 * @Auther: fyp
 * @Date: 2022/3/22
 * @Description:
 * @Package: cn.fyupeng.enums
 * @Version: 1.0
 */
public enum ResponseCode {
    SUCCESS(200, "success"),
    FAILURE(500, "fail");

    private final int code;
    private final String message;

    private ResponseCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy