zm
2020-05-18 a18bfacbf56b401f6e0fdae8710fbca4df8cff77
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
48
49
50
51
52
53
54
55
56
57
package com.changhong.autoform.entity.system;
 
public class RestResult<T> {
    /**
     * 应答/错误代码
     */
    private String rspCode;
    
    /**
     * 应答/错误描述
     */
    private String rspDesc;
    
    /**
     * 返回结果数据
     */
    private T data;
 
    private RestResult() {}
 
    public static <T> RestResult<T> newInstance() {
        return new RestResult<>();
    }
 
    public String getRspCode() {
        return rspCode;
    }
 
    public void setRspCode(String rspCode) {
        this.rspCode = rspCode;
    }
 
    public String getRspDesc() {
        return rspDesc;
    }
 
    public void setRspDesc(String rspDesc) {
        this.rspDesc = rspDesc;
    }
 
    public T getData() {
        return data;
    }
 
    public void setData(T data) {
        this.data = data;
    }
 
    @Override
    public String toString() {
        return "RestResult{" +
                "rspCode=" + rspCode +
                ", message='" + rspDesc + '\'' +
                ", data=" + data +
                '}';
    }
}