From 9974b1fffff1cad712b7c30fb4c708ef45ec4b8c Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Wed, 17 Mar 2021 09:44:03 +0800 Subject: [PATCH] Merge branch 'score_shop' of http://120.27.238.55:7000/r/beauty-erp into score_shop --- 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