1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
| package com.basic.security.utils;
|
| import com.basic.security.model.ModelAdapter;
|
| import java.util.List;
|
| public class Page {
|
| public int total;
| public List<ModelAdapter> data;
| int pageSize = 8;
|
| public Page(int total, List<ModelAdapter> data) {
| this.total = total;
| this.data = data;
| }
|
| public int pageTotal() {
| return (total + pageSize - 1) / pageSize;
| }
|
| }
|
|