From b9b58b9ef261cb290d93465f88a2cbd814b576f0 Mon Sep 17 00:00:00 2001
From: fei.wang <wf18701153496@163.com>
Date: 星期一, 13 五月 2024 17:51:44 +0800
Subject: [PATCH] 更改

---
 src/main/java/com/flow/util/result.java |  125 +++++++++++++++++++++++++++++++++++++++++
 1 files changed, 125 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/flow/util/result.java b/src/main/java/com/flow/util/result.java
new file mode 100644
index 0000000..930757e
--- /dev/null
+++ b/src/main/java/com/flow/util/result.java
@@ -0,0 +1,125 @@
+//
+// Source code recreated from a .class file by IntelliJ IDEA
+// (powered by FernFlower decompiler)
+//
+
+package com.flow.util;
+
+public class result<T> {
+    protected Integer code;
+    protected String msg;
+    protected T data;
+
+    public result(String msg, T data) {
+        this.code = 0;
+        this.msg = msg;
+        this.data = data;
+    }
+
+    public result(T data) {
+        this.code = 0;
+        this.msg = "";
+        this.data = data;
+    }
+
+    public Integer getCode() {
+        return this.code;
+    }
+
+    public String getMsg() {
+        return this.msg;
+    }
+
+    public T getData() {
+        return this.data;
+    }
+
+    public void setCode(Integer code) {
+        this.code = code;
+    }
+
+    public void setMsg(String msg) {
+        this.msg = msg;
+    }
+
+    public void setData(T data) {
+        this.data = data;
+    }
+
+    public boolean equals(Object o) {
+        if (o == this) {
+            return true;
+        } else if (!(o instanceof result)) {
+            return false;
+        } else {
+            result<?> other = (result)o;
+            if (!other.canEqual(this)) {
+                return false;
+            } else {
+                label47: {
+                    Object this$code = this.getCode();
+                    Object other$code = other.getCode();
+                    if (this$code == null) {
+                        if (other$code == null) {
+                            break label47;
+                        }
+                    } else if (this$code.equals(other$code)) {
+                        break label47;
+                    }
+
+                    return false;
+                }
+
+                Object this$msg = this.getMsg();
+                Object other$msg = other.getMsg();
+                if (this$msg == null) {
+                    if (other$msg != null) {
+                        return false;
+                    }
+                } else if (!this$msg.equals(other$msg)) {
+                    return false;
+                }
+
+                Object this$data = this.getData();
+                Object other$data = other.getData();
+                if (this$data == null) {
+                    if (other$data != null) {
+                        return false;
+                    }
+                } else if (!this$data.equals(other$data)) {
+                    return false;
+                }
+
+                return true;
+            }
+        }
+    }
+
+    protected boolean canEqual(Object other) {
+        return other instanceof result;
+    }
+
+    public int hashCode() {
+        int result = 1;
+        Object $code = this.getCode();
+        result = result * 59 + ($code == null ? 43 : $code.hashCode());
+        Object $msg = this.getMsg();
+        result = result * 59 + ($msg == null ? 43 : $msg.hashCode());
+        Object $data = this.getData();
+        result = result * 59 + ($data == null ? 43 : $data.hashCode());
+        return result;
+    }
+
+    public String toString() {
+        return "result(code=" + this.getCode() + ", msg=" + this.getMsg() + ", data=" + this.getData() + ")";
+    }
+
+    public result() {
+    }
+
+    public result(Integer code, String msg, T data) {
+        this.code = code;
+        this.msg = msg;
+        this.data = data;
+    }
+}

--
Gitblit v1.9.3