jiangping
2025-03-05 4b427634d3daa65f2a79549f11587d40ea1ec1cb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package com.doumee.dao.web.request;
 
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
 
import java.io.Serializable;
 
@ApiModel("分页请求")
public class PageRequest implements Serializable {
 
  @ApiModelProperty("当前页")
  private long current = 1;
 
  @ApiModelProperty("页码")
  private long size = 20;
 
  public long getCurrent() {
    return current;
  }
 
  public void setCurrent(long current) {
    this.current = current;
  }
 
  public long getSize() {
    return size;
  }
 
  public void setSize(long size) {
    this.size = size;
  }
 
  public <T> Page<T> toPage() {
    return new Page<>(current, size);
  }
 
}