严重bug,解决部分功能操作,提示文本空问题

pull/3201/head
zhangdaiscott 2021-11-06 19:00:08 +08:00
parent 0f79e8efef
commit f210df80e6
1 changed files with 8 additions and 0 deletions

View File

@ -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);