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 ;
|
}
|
|
|
|
|
|
}
|