
com.github.houbb.heaven.response.respcode.impl.HttpRespCodeEnum Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of heaven Show documentation
Show all versions of heaven Show documentation
Collect base useful tools for dev.
The newest version!
package com.github.houbb.heaven.response.respcode.impl;
import com.github.houbb.heaven.response.respcode.RespCode;
/**
* http 响应编码
* @author binbin.hou
* @since 0.1.1
*/
public enum HttpRespCodeEnum implements RespCode {
/**
* 成功
*/
OK(200, "OK");
/**
* 编码
*/
private final int code;
/**
* 信息
*/
private final String msg;
HttpRespCodeEnum(int code, String msg) {
this.code = code;
this.msg = msg;
}
@Override
public String getCode() {
return String.valueOf(this.code);
}
/**
* 整形编码
* @return 整形
*/
public int getCodeInt() {
return this.code;
}
@Override
public String getMsg() {
return this.msg;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy