com.github.houbb.web.common.dto.resp.CommonResp Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of web-common Show documentation
Show all versions of web-common Show documentation
The web-common tool for java.
package com.github.houbb.web.common.dto.resp;
/**
* @author binbin.hou
* @since 0.0.1
*/
public enum CommonResp implements IResp {
/**
* 通用枚举
*/
SUCCESS("0000", "成功"),
FAIL("9999", "失败"),
;
private final String code;
private final String desc;
CommonResp(String code, String message) {
this.code = code;
this.desc = message;
}
@Override
public String getCode() {
return code;
}
@Override
public String getDesc() {
return desc;
}
}