package com.model.pojo; public enum RepCode { success(200,"成功"), warn(-1,"请求失败,请重新尝试连接"), Null(-100,"数据为空"), nullAxis(-101,"x轴或y轴为空"), erro(-110,"参数错误"), nullTableName(-120,"表名为空"), hasChartsUsing(-130, "图表正在使用"); private int code; private String msg; RepCode(int code , String msg){ this.code = code; this.msg = msg; } public int getCode() { return code; } public String getMsg() { return msg; } }