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
| package com.dji.sample.common.model;
|
| import lombok.Data;
|
| import java.util.List;
|
| /**
| * The format of the data response when a paginated display is required.
| * @author sean
| * @version 0.3
| * @date 2021/12/22
| */
| @Data
| public class PaginationData<T> {
|
| /**
| * The collection in which the data list is stored.
| */
| private List<T> list;
|
| private Pagination pagination;
|
| public PaginationData(List<T> list, Pagination pagination) {
| this.list = list;
| this.pagination = pagination;
| }
| }
|
|