mirror of https://github.com/jeecgboot/jeecg-boot
严重bug,解决部分功能操作,提示文本空问题
parent
0f79e8efef
commit
f210df80e6
|
@ -103,6 +103,14 @@ public class Result<T> implements Serializable {
|
|||
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) {
|
||||
Result<T> r = new Result<T>();
|
||||
r.setSuccess(true);
|
||||
|
|
Loading…
Reference in New Issue