提交 | 用户 | age
|
b8f5f5
|
1 |
package com.hz.util.http.dto; |
C |
2 |
|
|
3 |
/** |
|
4 |
* 请求返回统一dto |
|
5 |
*/ |
|
6 |
public class HttpHzResponse { |
|
7 |
|
|
8 |
/**请求状态*/ |
|
9 |
private String code; |
|
10 |
/**错误信息*/ |
|
11 |
private String msg; |
|
12 |
/**返回信息*/ |
|
13 |
private String data; |
|
14 |
|
fa1ffd
|
15 |
/**请求返回状态-成功*/ |
b5bfe5
|
16 |
public static final String CODE_200 = "200"; |
fa1ffd
|
17 |
/**请求返回状态-成功*/ |
C |
18 |
public static final String CODE_201 = "201"; |
b5bfe5
|
19 |
|
b8f5f5
|
20 |
public String getCode() { |
C |
21 |
return code; |
|
22 |
} |
|
23 |
|
|
24 |
public void setCode(String code) { |
|
25 |
this.code = code; |
|
26 |
} |
|
27 |
|
|
28 |
public String getMsg() { |
|
29 |
return msg; |
|
30 |
} |
|
31 |
|
|
32 |
public void setMsg(String msg) { |
|
33 |
this.msg = msg; |
|
34 |
} |
|
35 |
|
|
36 |
public String getData() { |
|
37 |
return data; |
|
38 |
} |
|
39 |
|
|
40 |
public void setData(String data) { |
|
41 |
this.data = data; |
|
42 |
} |
|
43 |
} |