cn.fyupeng.enums.ResponseCode Maven / Gradle / Ivy
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