DeteMin
2020-03-31 77c62e023d2dc31200fc696158df84b3aee90ee7
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;
    }
 
}