严重bug,解决部分功能操作,提示文本空问题
This commit is contained in:
parent
0f79e8efef
commit
f210df80e6
|
@ -103,6 +103,14 @@ public class Result<T> implements Serializable {
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static<T> Result<T> OK(String msg) {
|
||||||
|
Result<T> r = new Result<T>();
|
||||||
|
r.setSuccess(true);
|
||||||
|
r.setCode(CommonConstant.SC_OK_200);
|
||||||
|
r.setMessage(msg);
|
||||||
|
return r;
|
||||||
|
}
|
||||||
|
|
||||||
public static<T> Result<T> OK(T data) {
|
public static<T> Result<T> OK(T data) {
|
||||||
Result<T> r = new Result<T>();
|
Result<T> r = new Result<T>();
|
||||||
r.setSuccess(true);
|
r.setSuccess(true);
|
||||||
|
|
Loading…
Reference in New Issue