BaseResponse.java
875 Bytes
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.cnlive.goldenline.model.response;
import java.io.Serializable;
/**
* Description:接口反馈基础Bean
* Created on 2017/3/13
* Author : 萧
*/
public class BaseResponse implements Serializable {
private int code;
private String errMsg;
public BaseResponse() {
}
public BaseResponse(int code, String errMsg) {
this.code = code;
this.errMsg = errMsg;
}
public int getCode() {
return code;
}
public void setCode(int code) {
this.code = code;
}
public String getErrMsg() {
return errMsg;
}
public void setErrMsg(String errMsg) {
this.errMsg = errMsg;
}
@Override
public String toString() {
return "BaseResponseBean{" +
"code=" + code +
", errMsg='" + errMsg + '\'' +
'}';
}
}