| | |
| | | package com.ycl.api; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author Lyq |
| | | * @version 1.0 |
| | | * @date 2022/9/9 |
| | | */ |
| | | @ApiModel |
| | | @Data |
| | | public class BasePageDTO<T> { |
| | | @ApiModelProperty("总数") |
| | | private long total; |
| | | @ApiModelProperty("列表") |
| | | private List<T> records = new ArrayList<>(); |
| | | } |
| | | package com.ycl.api;
|
| | |
|
| | | import io.swagger.annotations.ApiModel;
|
| | | import io.swagger.annotations.ApiModelProperty;
|
| | | import lombok.Data;
|
| | |
|
| | | import java.util.ArrayList;
|
| | | import java.util.List;
|
| | |
|
| | |
|
| | | @ApiModel
|
| | | @Data
|
| | | public class BasePageDTO<T> {
|
| | | @ApiModelProperty("总数")
|
| | | private long total;
|
| | | @ApiModelProperty("列表")
|
| | | private List<T> records = new ArrayList<>();
|
| | | }
|