content: /*
   ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
   ~                                                                               ~
   ~ The MIT License (MIT)                                                         ~
   ~                                                                               ~
   ~ Copyright (c) 2015-2025 miaixz.org and other contributors.                    ~
   ~                                                                               ~
   ~ Permission is hereby granted, free of charge, to any person obtaining a copy  ~
   ~ of this software and associated documentation files (the "Software"), to deal ~
   ~ in the Software without restriction, including without limitation the rights  ~
   ~ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell     ~
   ~ copies of the Software, and to permit persons to whom the Software is         ~
   ~ furnished to do so, subject to the following conditions:                      ~
   ~                                                                               ~
   ~ The above copyright notice and this permission notice shall be included in    ~
   ~ all copies or substantial portions of the Software.                           ~
   ~                                                                               ~
   ~ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR    ~
   ~ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,      ~
   ~ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE   ~
   ~ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER        ~
   ~ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, ~
   ~ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN     ~
   ~ THE SOFTWARE.                                                                 ~
   ~                                                                               ~
   ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
  */
  package org.miaixz.bus.pager;
  
  /**
   * 分页参数基类，继承该类以便更直接地控制分页参数。
   *
   * @author Kimi Liu
   * @since Java 17+
   */
  public class PageParam implements Paging {
  
      /**
       * 页码
       */
      private Integer pageNo;
      /**
       * 每页记录数
       */
      private Integer pageSize;
      /**
       * 排序字段
       */
      private String orderBy;
  
      /**
       * 默认构造函数。
       */
      public PageParam() {
      }
  
      /**
       * 构造函数，指定页码和每页记录数。
       *
       * @param pageNo   页码（从1开始）
       * @param pageSize 每页记录数
       */
      public PageParam(Integer pageNo, Integer pageSize) {
          this.pageNo = pageNo;
          this.pageSize = pageSize;
      }
  
      /**
       * 构造函数，指定页码、每页记录数和排序字段。
       *
       * @param pageNo   页码（从1开始）
       * @param pageSize 每页记录数
       * @param orderBy  排序字段
       */
      public PageParam(Integer pageNo, Integer pageSize, String orderBy) {
          this.pageNo = pageNo;
          this.pageSize = pageSize;
          this.orderBy = orderBy;
      }
  
      /**
       * 获取页码。
       *
       * @return 页码
       */
      @Override
      public Integer getPageNo() {
          return pageNo;
      }
  
      /**
       * 设置页码。
       *
       * @param pageNo 页码
       */
      public void setPageNo(Integer pageNo) {
          this.pageNo = pageNo;
      }
  
      /**
       * 获取每页记录数。
       *
       * @return 每页记录数
       */
      @Override
      public Integer getPageSize() {
          return pageSize;
      }
  
      /**
       * 设置每页记录数。
       *
       * @param pageSize 每页记录数
       */
      public void setPageSize(Integer pageSize) {
          this.pageSize = pageSize;
      }
  
      /**
       * 获取排序字段。
       *
       * @return 排序字段
       */
      @Override
      public String getOrderBy() {
          return orderBy;
      }
  
      /**
       * 设置排序字段。
       *
       * @param orderBy 排序字段
       */
      public void setOrderBy(String orderBy) {
          this.orderBy = orderBy;
      }
  
  }
  