From b98a1de065e0cf2035c15cfb889ce4033a738a82 Mon Sep 17 00:00:00 2001 From: 无关风月 <443237572@qq.com> Date: 星期三, 08 一月 2025 16:30:13 +0800 Subject: [PATCH] bug修改 --- ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/domain/R.java | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/domain/R.java b/ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/domain/R.java index 9b3ac77..b78f6fd 100644 --- a/ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/domain/R.java +++ b/ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/domain/R.java @@ -61,6 +61,10 @@ return restResult(data, FAIL, msg); } + public static <T> R<T> fail(T data, Integer code, String msg) { + return restResult(data, code, msg); + } + public static <T> R<T> fail(int code, String msg) { return restResult(null, code, msg); } -- Gitblit v1.7.1