吉安感知网项目-后端
xiebin
2026-01-06 d207a86cdf1ab52ef8cb7cd83bad8fceab8038cf
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
package org.sxkj.common.model;
 
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.Data;
 
import java.io.Serializable;
 
/**
 * Used for paging display in the wayline. These field names cannot be changed.
 * Because they need to be the same as the pilot.
 * @author sean
 * @version 0.3
 * @date 2021/12/22
 */
@Data
public class Pagination implements Serializable {
 
    /**
     * The current page number.
     */
    private long page=1;
 
    /**
     * The amount of data displayed per page.
     */
    private long pageSize=10;
 
    /**
     * The total amount of all data.
     */
    private long total;
 
    public Pagination(Page page) {
        this.page = page.getCurrent();
        this.pageSize = page.getSize();
        this.total = page.getTotal();
    }
    public Pagination() {
    }
}