| 12345678910111213141516171819202122232425262728293031 |
- package com.model.pojo;
- public enum RepCode {
- success(200,"成功"),
- warn(-1,"请求失败,请重新尝试连接"),
- Null(-100,"数据为空"),
- nullAxis(-101,"x轴或y轴为空"),
- erro(-110,"参数错误"),
- nullTableName(-120,"表名为空"),
- hasChartsUsing(-130, "图表正在使用"),
- hasGroupUsing(-140, "存在子分组"),
- hasConUsing(-150, "分组正在被数据源使用"),
- hasChartUsing(-160, "分组正在被图表使用");
- 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;
- }
- }
|