ApiResponse.java
707 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
package com.lijinji.scan.https;
public class ApiResponse<T> {
private String code; // 返回码
private String msg; // 返回信息
private T data;
private T session;
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getMsg() {
return msg;
}
public void setMsg(String msg) {
this.msg = msg;
}
public T getData() {
return data;
}
public void setData(T data) {
this.data = data;
}
public T getSession() {
return session;
}
public void setSession(T session) {
this.session = session;
}
}