ObjVo.java
1.1 KB
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
58
59
60
61
62
63
package com.aukey.example.vo;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.List;
/**
* 分页对象
*
* @author 吴耿锋
* @version 2018年5月11日
* 对应 OBJ 返回数据类型
*/
public class ObjVo<T> implements Serializable {
@ApiModelProperty("页数")
private int pageNumber;
@ApiModelProperty("每页条数")
private int pageSize;
@ApiModelProperty("总条数")
private int total;
@ApiModelProperty("每页数据")
private List<T> data;
public int getPageNumber() {
return pageNumber;
}
public void setPageNumber(int pageNumber) {
this.pageNumber = pageNumber;
}
public int getPageSize() {
return pageSize;
}
public void setPageSize(int pageSize) {
this.pageSize = pageSize;
}
public int getTotal() {
return total;
}
public void setTotal(int total) {
this.total = total;
}
public List<T> getData() {
return data;
}
public void setData(List<T> data) {
this.data = data;
}
}