Helius
2021-03-17 9974b1fffff1cad712b7c30fb4c708ef45ec4b8c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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 ;
    }
 
 
 
 
 
}