skyouc
2025-03-11 a5b2c1ecf929ab28eeed045a5b616f731160ce15
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
package com.vincent.rsf.server.common.domain;
 
import lombok.Data;
import lombok.experimental.Accessors;
 
import java.io.Serializable;
import java.util.List;
 
/**
 * @author vincent
 * @since 2017-06-10 10:10:02
 */
@Data
@Accessors(chain = true)
public class PageResult<T> implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    private List<T> records;
 
    private Long total;
 
    public PageResult() {
    }
 
    public PageResult(List<T> records) {
        this(records, null);
    }
 
    public PageResult(List<T> records, Long total) {
        this.records = records;
        this.total = total;
    }
 
}