修复了统一返回类在使用返回成功方法且只有返回类做参数时,返回空的错误

master
面包骑士 2024-08-22 19:42:54 +08:00
parent 6cfb970bff
commit 943932391f
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ public class Result<T> implements Serializable {
}
public static <T> Result<T> success (T data) {
return restResult(null, SUCCESS, "操作成功");
return restResult(data, SUCCESS, "操作成功");
}
public static <T> Result<T> success (T data, String msg) {