设置错误信息枚举表

    技术2022-07-10  143

    设置错误信息枚举表

    public enum ResponseCode { SUCCESS("000000", "成功"), LOGINERR("BIZ100102", "登录失败"); private String code; private String desc; public String getCode() { return code; } public void setCode(String code) { this.code = code; } public String getDesc() { return desc; } public void setDesc(String desc) { this.desc = desc; } private ResponseCode(String code, String desc) { this.code = code; this.desc = desc; } }
    Processed: 0.017, SQL: 9