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); 
 | 
  } 
 | 
  
 | 
} 
 |