From 0edbc15d102ddcd8ce4001a85583ce920ee22b21 Mon Sep 17 00:00:00 2001
From: nickchange <126672920+nickchange@users.noreply.github.com>
Date: 星期三, 25 十月 2023 09:40:30 +0800
Subject: [PATCH] 10.25
---
cloud-server-other/src/main/java/com/dsh/other/util/ResultUtil.java | 6 +++++-
1 files changed, 5 insertions(+), 1 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 6e47fcc..a5794d6 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,11 +3,13 @@
import com.alibaba.fastjson.JSONObject;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
/**
* 定义统一返回对象
*/
@ApiModel(value = "统一返回结果集")
+@Data
public class ResultUtil<T> {
public static final Integer SUCCESS = 200;
@@ -50,7 +52,7 @@
return code;
}
- private ResultUtil(Integer code, String msg) {
+ public ResultUtil(Integer code, String msg) {
this.code = code;
this.msg = msg;
}
@@ -128,6 +130,8 @@
}
+
+
/**
* 运行异常
* @return
--
Gitblit v1.7.1