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
| package com.hxzkappboot.util;
|
| import lombok.AllArgsConstructor;
| import lombok.Data;
| import lombok.NoArgsConstructor;
|
| @Data
| @NoArgsConstructor
| @AllArgsConstructor
| public class result<T> {
| protected Integer code;
| protected String msg;
| protected T data;
|
| /*声明其它构造器*/
| public result(String msg,T data){
| this.code=0;
| this.msg=msg;
| this.data=data;
| }
| public result(T data){
| this.code=0;
| this.msg="";
| this.data=data;
| }
| public result(String msg,Integer code){
| this.code=code;
| this.msg=msg;
| }
| }
|
|