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 {
this.code = code;
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;
}
}
package com.jsh.erp.utils;
import com.alibaba.fastjson.annotation.JSONCreator;
import com.alibaba.fastjson.annotation.JSONField;
/**
* @author jishenghua qq752718920 2018-10-7 15:26:27
*/
public class ResponseCode {
public final int code;
public final Object data;
/**
*
* @param code
* @param data
*/
@JSONCreator
public ResponseCode(@JSONField(name = "code") int code, @JSONField(name = "data")Object data) {
this.code = code;
this.data = data;
}
}
\ No newline at end of file
package com.jsh.erp.utils;
import com.alibaba.fastjson.annotation.JSONCreator;
import com.alibaba.fastjson.annotation.JSONField;
/**
* @author jishenghua qq752718920 2018-10-7 15:26:27
*/
public class ResponseCode {
/* public final int code;
public final Object data;*/
public int code;
public Object data;
/**
*
* @param code
* @param data
*/
@JSONCreator
public ResponseCode(@JSONField(name = "code") int code, @JSONField(name = "data")Object data) {
this.code = code;
this.data = 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