From c253b555c7905c5136d47cd615ef545fa50cc6ad Mon Sep 17 00:00:00 2001
From: 935090232@qq.com <ak473600000>
Date: Sun, 20 Feb 2022 21:24:16 +0800
Subject: [PATCH] Merge branch 'api_score_meger'

---
 zq-erp/src/main/java/com/matrix/core/pojo/VerificationResult.java |   47 +++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 47 insertions(+), 0 deletions(-)

diff --git a/zq-erp/src/main/java/com/matrix/core/pojo/VerificationResult.java b/zq-erp/src/main/java/com/matrix/core/pojo/VerificationResult.java
new file mode 100644
index 0000000..d4bb932
--- /dev/null
+++ b/zq-erp/src/main/java/com/matrix/core/pojo/VerificationResult.java
@@ -0,0 +1,47 @@
+package com.matrix.core.pojo;
+
+import lombok.Data;
+
+/**
+ * 通用的验证返回参数
+ */
+@Data
+public class VerificationResult {
+
+    private boolean judgeResult;
+
+    private String  msg;
+
+    private Object  info;
+
+    private VerificationResult(){
+
+    }
+
+    public static VerificationResult buildVerificationResult(boolean judgeResult){
+        VerificationResult obj=new VerificationResult();
+        obj.judgeResult =judgeResult;
+        return obj ;
+    }
+
+
+    public static VerificationResult buildVerificationResult(boolean judgeResult,String msg){
+        VerificationResult obj=new VerificationResult();
+        obj.judgeResult =judgeResult;
+        obj.msg=msg;
+        return obj ;
+    }
+
+
+    public static VerificationResult buildVerificationResult(boolean judgeResult,Object  info){
+        VerificationResult obj=new VerificationResult();
+        obj.judgeResult =judgeResult;
+        obj.info=info;
+        return obj ;
+    }
+
+
+
+
+
+}

--
Gitblit v1.9.1