a
554325746@qq.com
2020-01-02 e52632329ef8342a2f692bf58184fc54db3d2b4c
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;
    }
 
}