|
@@ -34,7 +34,7 @@ public class ResultData<T> implements Serializable {
|
|
private long timestamp = Calendar.getInstance().getTimeInMillis();
|
|
private long timestamp = Calendar.getInstance().getTimeInMillis();
|
|
|
|
|
|
public static ResultData ok() {
|
|
public static ResultData ok() {
|
|
- return ok("");
|
|
|
|
|
|
+ return ok(null);
|
|
}
|
|
}
|
|
public static ResultData ok(Object data) {
|
|
public static ResultData ok(Object data) {
|
|
return ok("", data);
|
|
return ok("", data);
|
|
@@ -53,7 +53,7 @@ public class ResultData<T> implements Serializable {
|
|
}
|
|
}
|
|
|
|
|
|
public static ResultData error(int code, String msg) {
|
|
public static ResultData error(int code, String msg) {
|
|
- return error(code, msg, ""); }
|
|
|
|
|
|
+ return error(code, msg, null); }
|
|
public static ResultData error(int code, String msg, Object data) {
|
|
public static ResultData error(int code, String msg, Object data) {
|
|
return base(code, msg, data,false);
|
|
return base(code, msg, data,false);
|
|
}
|
|
}
|