From 6c01241b96f66239aff192f22dce99e1275986ed Mon Sep 17 00:00:00 2001 From: 疯狂的狮子li <15040126243@163.com> Date: 星期二, 15 二月 2022 11:07:50 +0800 Subject: [PATCH] fix 回滚代码生成部分优化 修复优化导致的问题 --- ruoyi-common/src/main/java/com/ruoyi/common/core/domain/R.java | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/R.java b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/R.java index 8fa4a64..f868e8e 100644 --- a/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/R.java +++ b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/R.java @@ -49,7 +49,7 @@ return restResult(null, SUCCESS, msg); } - public static <T> R<T> ok(T data, String msg) { + public static <T> R<T> ok(String msg, T data) { return restResult(data, SUCCESS, msg); } @@ -65,7 +65,7 @@ return restResult(data, FAIL, null); } - public static <T> R<T> fail(T data, String msg) { + public static <T> R<T> fail(String msg, T data) { return restResult(data, FAIL, msg); } -- Gitblit v1.9.3