package xtools.boot.api.model.dto.page;

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

import java.io.Serializable;

/**
 * <p>Title : PageReq</p>
 * <p>Description : PageReq</p>
 * <p>DevelopTools : Idea_x64_v2026.1</p>
 * <p>DevelopSystem : macOS Sequoia 15.7.5</p>
 * <p>Company : org.xujun</p>
 *
 * @author : XuJun
 * @version : 5.0.0
 * @date : 2025/12/22 14:58
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PageReq<T> implements Serializable {

    /**
     * 当前页面
     */
    @Schema(description = "当前页面", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Integer currentPage;

    /**
     * 页面数据条数
     */
    @Schema(description = "页面数据条数", requiredMode = Schema.RequiredMode.REQUIRED, example = "10")
    private Integer pageSize;

    /**
     * 查询条件
     */
    @Schema(description = "查询条件")
    private T query;
}
