From bf05d91fca1de52d144a4fc5c4cc89481d040aa9 Mon Sep 17 00:00:00 2001
From: sinake <sinake1@qq.com>
Date: 星期一, 18 五月 2026 11:27:05 +0800
Subject: [PATCH] 新增InfoID获取伦理审查发起详细信息挡口,获取捐献工作流新增7个状态字段数据

---
 ruoyi-common/src/main/java/com/ruoyi/common/core/domain/Result.java |  132 ++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 132 insertions(+), 0 deletions(-)

diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/Result.java b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/Result.java
new file mode 100644
index 0000000..61fd297
--- /dev/null
+++ b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/Result.java
@@ -0,0 +1,132 @@
+package com.ruoyi.common.core.domain;
+
+
+
+import io.swagger.annotations.ApiModelProperty;
+
+import java.io.Serializable;
+
+
+public class Result<T> implements Serializable {
+    private static final long serialVersionUID = 1L;
+    public static final int SUCCESS = 200;
+    public static final int FAIL = 500;
+
+    @ApiModelProperty("杩斿洖鍐呭")
+    private String msg = "鎴愬姛";
+
+    @ApiModelProperty("鐘舵�佺爜")
+    private Integer code = 0;
+
+    @ApiModelProperty("鎬绘潯鏁�")
+    private Long total = 0L;
+
+    @ApiModelProperty("鏁版嵁瀵硅薄")
+    private T data;
+
+    public Result() {
+    }
+
+    public Result(Integer code, String msg) {
+        this.code = code;
+        this.msg = msg;
+    }
+
+
+    public static <T> Result<T> success() {
+        Result<T> r = new Result();
+        r.setCode(0);
+        return r;
+    }
+
+    public static <T> Result<T> success(String msg) {
+        Result<T> r = new Result();
+        r.setCode(SUCCESS);
+        r.setData((T) msg);
+        return r;
+    }
+
+    public static <T> Result<T> success(T data) {
+        Result<T> r = new Result();
+        r.setCode(SUCCESS);
+        r.setData(data);
+        return r;
+    }
+
+    public static <T> Result<T> success(Long total, T data) {
+        Result<T> r = new Result();
+        r.setTotal(total);
+        r.setCode(SUCCESS);
+        r.setData(data);
+        return r;
+    }
+
+    public static <T> Result<T> success(String msg, T data) {
+        Result<T> r = new Result();
+        r.setCode(SUCCESS);
+        r.setMsg(msg);
+        r.setData(data);
+        return r;
+    }
+
+
+    public static <T> Result<T> error() {
+        return error(FAIL, "鎿嶄綔澶辫触");
+    }
+
+    public static <T> Result<T> error(String msg) {
+        return error(FAIL, msg);
+    }
+
+    public static <T> Result<T> error(int code, String msg) {
+        return error(code, msg, null);
+    }
+
+    public static <T> Result<T> error(int code, String msg, T data) {
+        Result<T> r = new Result();
+        r.setCode(code);
+        r.setData(data);
+        return r;
+    }
+
+
+
+    public static <T> Result<T> noauth(String msg) {
+        return error(510, msg);
+    }
+
+    public String getMsg() {
+        return this.msg;
+    }
+
+    public Integer getCode() {
+        return this.code;
+    }
+
+    public Long getTotal() {
+        return this.total;
+    }
+
+    public T getData() {
+        return this.data;
+    }
+
+    public void setMsg(final String msg) {
+        this.msg = msg;
+    }
+
+    public void setCode(final Integer code) {
+        this.code = code;
+    }
+
+    public void setTotal(final Long total) {
+        this.total = total;
+    }
+
+    public void setData(final T data) {
+        this.data = data;
+    }
+
+
+
+}
\ No newline at end of file

--
Gitblit v1.9.3