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

matrix.boot.common.vo.PageVo Maven / Gradle / Ivy

There is a newer version: 2.1.11
Show newest version
package matrix.boot.common.vo;

import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * 分页请求参数
 *
 * @author wangcheng
 * 2021/12/28
 **/
@Data
@Accessors(chain = true)
public class PageVo implements Serializable {

    /**
     * 当前页码
     */
    private Long page = 1L;

    /**
     * 每页条数
     */
    private Long pageSize = 20L;

    /**
     * 排序字段列表
     */
    private List sorts;

    /**
     * 排序字段
     */
    @Data
    @Accessors(chain = true)
    public static class Sort implements Serializable {

        /**
         * 排序属性
         */
        private String prop;

        /**
         * 是否升序
         */
        private Boolean asc = true;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy