package com.ai.da.model.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;


@Data
@ApiModel("分页查询")
public class PageQueryBaseVo {

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

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