package com.zg.project.Inventory.Visualization.domain.dto;

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

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
@Data
public class QueryDTO {
    @ApiModelProperty("页码，从1开始")
    @Min(value = 1, message = "页码最小为1")
    private Integer pageNum = 1;

    @ApiModelProperty("每页条数")
    @Min(value = 1, message = "每页条数最小为1")
    @Max(value = 100, message = "每页条数最大为100")
    private Integer pageSize = 10;

}
