All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.woodwhales.common.model.param.PageQueryParam Maven / Gradle / Ivy

There is a newer version: 3.8.3
Show newest version
package cn.woodwhales.common.model.param;

import lombok.Data;
import cn.woodwhales.common.model.field.PageQueryInterface;

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

/**
 * @author woodwhales on 2020-08-25
 * 分页查询请求对象
 */
@Data
public class PageQueryParam implements PageQueryInterface {

    /**
     * 当前页码
     */
    @Min(value = 1, message = "当前页码不允许小于第一页")
    @NotNull(message = "page不允许为空")
    private Integer page;

    /**
     * 每页显示总记录数
     */
    @Min(value = 0, message = "当前页总记录数不允许为负数")
    @NotNull(message = "limit不允许为空")
    private Integer limit;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy