mirror of https://gitee.com/maxjhandsome/pig
优化: R返回对象信息构造方法
This commit is contained in:
parent
52841afc32
commit
53017afbb7
|
@ -35,6 +35,12 @@ public class R<T> implements Serializable {
|
|||
this.data = data;
|
||||
}
|
||||
|
||||
public R(T data, String msg) {
|
||||
super();
|
||||
this.data = data;
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public R(Throwable e) {
|
||||
super();
|
||||
this.msg = e.getMessage();
|
||||
|
|
Loading…
Reference in New Issue