package com.ai.da.model.vo;

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

import jakarta.validation.constraints.Min;


@Data
@Schema(description = "分页查询")
public class PageQueryBaseVo {

    @Schema(description = "页码")
    @Min(value = 0, message = "page最小值为1")
    private Integer page = 1;

    @Schema(description = "每页数量")
    @Min(value = 0, message = "The minimum size is 1")
//    @Max(value = 50, message = "The maximum size is 50")
    private Integer size = 20;
}
