| | |
| | | @Data |
| | | public class VerificationResult { |
| | | |
| | | /** |
| | | * 审核结果 |
| | | */ |
| | | private boolean judgeResult; |
| | | |
| | | private String msg; |
| | | |
| | | private Object info; |
| | | |
| | | |
| | | private VerificationResult(){ |
| | | |
| | | } |
| | | |
| | | public static VerificationResult success(){ |
| | | return buildVerificationResult(true); |
| | | } |
| | | |
| | | public static VerificationResult success(String msg){ |
| | | return buildVerificationResult(true,msg); |
| | | } |
| | | |
| | | |
| | | public static VerificationResult fail(){ |
| | | return buildVerificationResult(false); |
| | | } |
| | | |
| | | public static VerificationResult fail(String msg){ |
| | | return buildVerificationResult(false,msg); |
| | | } |
| | | |
| | | |
| | | public static VerificationResult buildVerificationResult(boolean judgeResult){ |
| | | VerificationResult obj=new VerificationResult(); |
| | | obj.judgeResult =judgeResult; |