liulin
2024-07-30 ce04dfcdd664df7e791a63800cab2cd2d12e878c
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
package com.lunhan.xxx.common.validator;
 
public class ParameterValidateResult {
    private Boolean isSuccess;
    private String errorMsg;
 
    public ParameterValidateResult() {}
    public ParameterValidateResult(Boolean isSuccess, String errorMsg) {
        this.isSuccess = isSuccess;
        this.errorMsg = errorMsg;
    }
 
    public Boolean getIsSuccess() {
        return isSuccess;
    }
    public void setIsSuccess(Boolean success) {
        isSuccess = success;
    }
 
    public Boolean getIsFiled() {
        return !isSuccess;
    }
 
    public String getErrorMsg() {
        return errorMsg;
    }
    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }
 
    @Override
    public String toString() {
        return "ParameterValidateResult{" +
                "isSuccess=" + isSuccess +
                ", errorMsg='" + errorMsg + '\'' +
                '}';
    }
}