liujie
2026-09-11 4f6f15b818704079ff2e4e4719b798f48d68a335
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package com.tourguide.common.api;
 
import java.util.List;
 
public class PageResponse<T> {
    private final List<T> records;
    private final long total;
    private final long page;
    private final long size;
 
    public PageResponse(List<T> records, long total, long page, long size) {
        this.records = records;
        this.total = total;
        this.page = page;
        this.size = size;
    }
    public List<T> getRecords() { return records; }
    public long getTotal() { return total; }
    public long getPage() { return page; }
    public long getSize() { return size; }
}