Commit 1363fb07 authored by Administrator's avatar Administrator
Browse files

1.ResponseCode类中变量去掉final

2.BusinessRunTimeException 中增加get和set方法
parent bfee3896
...@@ -29,4 +29,22 @@ public class BusinessRunTimeException extends RuntimeException { ...@@ -29,4 +29,22 @@ public class BusinessRunTimeException extends RuntimeException {
this.code = code; this.code = code;
this.data = objectMap; this.data = objectMap;
} }
public int getCode() {
return code;
}
public void setCode(int code) {
this.code = code;
}
public Map<String, Object> getData() {
return data;
}
public void setData(Map<String, Object> data) {
this.data = data;
}
} }
...@@ -8,8 +8,11 @@ import com.alibaba.fastjson.annotation.JSONField; ...@@ -8,8 +8,11 @@ import com.alibaba.fastjson.annotation.JSONField;
*/ */
public class ResponseCode { public class ResponseCode {
public final int code; /* public final int code;
public final Object data; public final Object data;*/
public int code;
public Object data;
/** /**
* *
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment