package com.gz.vo;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * 分页入参VO
 * @author LiuchangLan
 * @date 2021/1/26 22:41
 */
@Data
public class PageVO {
    // 页数
    @Min(value = 1,message = "页数最少为第1页")
    @NotNull(message = "页数不能为空")
    private Integer pageNum;
    // 每页显示数量
    @NotNull(message = "每页数量不能为空")
    @Min(value = 1,message = "每页数量最少为1")
    private Integer pageSize;
}
