From 54deba01a988109baf4aabdc8f0b8ae48562f0d8 Mon Sep 17 00:00:00 2001
From: puzhibing <393733352@qq.com>
Date: 星期五, 04 八月 2023 12:13:00 +0800
Subject: [PATCH] 后台代码
---
cloud-server-other/src/main/java/com/dsh/other/util/ResultUtil.java | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/cloud-server-other/src/main/java/com/dsh/other/util/ResultUtil.java b/cloud-server-other/src/main/java/com/dsh/other/util/ResultUtil.java
index e84ecdd..6e47fcc 100644
--- a/cloud-server-other/src/main/java/com/dsh/other/util/ResultUtil.java
+++ b/cloud-server-other/src/main/java/com/dsh/other/util/ResultUtil.java
@@ -3,7 +3,6 @@
import com.alibaba.fastjson.JSONObject;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
-import org.springframework.beans.factory.annotation.Autowired;
/**
* 定义统一返回对象
@@ -107,8 +106,8 @@
* 参数异常
* @return
*/
- public static ResultUtil paranErr(){
- return ResultUtil.getResult(ResultUtil.PARAM_ERROR, "PARAM_ERROR", new JSONObject());
+ public static ResultUtil paranErr(String ages){
+ return ResultUtil.getResult(ResultUtil.PARAM_ERROR, "【" + ages + "】参数异常", new JSONObject());
}
/**
@@ -116,11 +115,10 @@
* @return
*/
public static <T> ResultUtil<T> paranErr(T data){
- return ResultUtil.getResult(ResultUtil.PARAM_ERROR, "SYSTEM_RUN_ERROR", data);
+ return ResultUtil.getResult(ResultUtil.PARAM_ERROR, "PARAM_ERROR", data);
}
- @Autowired
- private static MessageUtils messageUtils;
+
/**
* 运行异常
* @return
--
Gitblit v1.7.1