package cn.iocoder.yudao.module.knowledge.constants;

import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema.RequiredMode;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@Schema(
        description = "分页结果"
)
@Data
public final class PageResult<T> implements Serializable {
    @Schema(
            description = "数据",
            requiredMode = RequiredMode.REQUIRED
    )
    private List<T> list;
    @Schema(
            description = "总量",
            requiredMode = RequiredMode.REQUIRED
    )
    private Long total;
    @Schema(
            description = "当前页数据量",
            requiredMode = RequiredMode.REQUIRED
    )
    private Integer currentSize;
    @Schema(
            description = "当前页数",
            requiredMode = RequiredMode.REQUIRED
    )
    private Integer currentPage;


}
